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
e8de9ed7
Commit
e8de9ed7
authored
Aug 22, 2014
by
BRAMAS Berenger
Browse files
Add a offset to the mpi tag to ensure coherency
parent
4fce1c6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Files/FMpiTreeBuilder.hpp
View file @
e8de9ed7
...
...
@@ -376,7 +376,7 @@ public:
requestsParts
.
emplace_back
();
FMpi
::
MpiAssert
(
MPI_Isend
((
ParticleClass
*
)
&
particlesArrayInLeafOrder
[
leavesOffsetInParticles
[
pack
.
elementFrom
]],
sizeof
(
ParticleClass
)
*
nbPartsPerPackToSend
[
idxPack
],
MPI_BYTE
,
pack
.
idProc
,
FMpi
::
TagExchangeIndexs
,
communicator
.
getComm
(),
&
requestsParts
.
back
()),
__LINE__
);
MPI_BYTE
,
pack
.
idProc
,
FMpi
::
TagExchangeIndexs
+
2
,
communicator
.
getComm
(),
&
requestsParts
.
back
()),
__LINE__
);
}
}
// Compute the current intervals
...
...
@@ -426,7 +426,7 @@ public:
if
(
pack
.
idProc
!=
myRank
&&
0
<
(
pack
.
elementTo
-
pack
.
elementFrom
)){
requestsParts
.
emplace_back
();
FMpi
::
MpiAssert
(
MPI_Irecv
(
&
particlesRecvBuffer
[
offsetToRecv
],
sizeof
(
ParticleClass
)
*
nbPartsPerPackToRecv
[
idxPack
],
MPI_BYTE
,
pack
.
idProc
,
FMpi
::
TagExchangeIndexs
,
communicator
.
getComm
(),
&
requestsParts
.
back
()),
__LINE__
);
FMpi
::
TagExchangeIndexs
+
2
,
communicator
.
getComm
(),
&
requestsParts
.
back
()),
__LINE__
);
}
else
if
(
pack
.
idProc
==
myRank
){
// Copy my particles
...
...
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