A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
please sonar in various trivial ways
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_pmpi_coll.cpp
diff --git
a/src/smpi/bindings/smpi_pmpi_coll.cpp
b/src/smpi/bindings/smpi_pmpi_coll.cpp
index
415f126
..
09324ed
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_coll.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_coll.cpp
@@
-417,7
+417,7
@@
int PMPI_Ireduce(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
{
if (comm == MPI_COMM_NULL) {
return MPI_ERR_COMM;
- } if ((sendbuf == nullptr && count > 0) || ((comm->rank() == root) && recvbuf == nullptr)) {
+ }
else
if ((sendbuf == nullptr && count > 0) || ((comm->rank() == root) && recvbuf == nullptr)) {
return MPI_ERR_BUFFER;
} else if (datatype == MPI_DATATYPE_NULL || not datatype->is_valid()){
return MPI_ERR_TYPE;
@@
-475,7
+475,7
@@
int PMPI_Iallreduce(void *sendbuf, void *recvbuf, int count, MPI_Datatype dataty
{
if (comm == MPI_COMM_NULL) {
return MPI_ERR_COMM;
- } if ((sendbuf == nullptr && count > 0) || (recvbuf == nullptr)) {
+ }
else
if ((sendbuf == nullptr && count > 0) || (recvbuf == nullptr)) {
return MPI_ERR_BUFFER;
} else if (datatype == MPI_DATATYPE_NULL || not datatype->is_valid()) {
return MPI_ERR_TYPE;