Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
1f024839
Commit
1f024839
authored
Jun 25, 2014
by
BRAMAS Berenger
Browse files
Simply cast an int to IndexType
parent
9de3515a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Utils/FQuickSortMpi.hpp
View file @
1f024839
...
...
@@ -326,7 +326,7 @@ public:
int
procInTheMiddle
;
if
(
globalNumberOfElementsLower
==
0
)
procInTheMiddle
=
-
1
;
else
if
(
globalNumberOfElementsGreater
==
0
)
procInTheMiddle
=
currentNbProcs
-
1
;
else
procInTheMiddle
=
FMath
::
Min
(
currentNbProcs
-
2
,
(
currentNbProcs
*
globalNumberOfElementsLower
)
else
procInTheMiddle
=
FMath
::
Min
(
IndexType
(
currentNbProcs
-
2
)
,
(
currentNbProcs
*
globalNumberOfElementsLower
)
/
(
globalNumberOfElementsGreater
+
globalNumberOfElementsLower
));
////FLOG( FLog::Controller << currentComm.processId() << "] procInTheMiddle = " << procInTheMiddle << "\n"; )
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment