Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Declare one identifier per statement.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 3 Apr 2019 19:52:06 +0000 (21:52 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 3 Apr 2019 21:32:03 +0000 (23:32 +0200)
src/smpi/colls/smpi_nbc_impl.cpp
src/smpi/mpi/smpi_request.cpp

index 14781da..b8de308 100644 (file)
@@ -178,8 +178,10 @@ int Colls::iallgatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype, void
 }
 
 int Colls::ialltoall( void *sendbuf, int sendcount, MPI_Datatype sendtype, void* recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm, MPI_Request* request){
-int system_tag = COLL_TAG_ALLTOALL;
-  MPI_Aint lb = 0, sendext = 0, recvext = 0;
+  int system_tag   = COLL_TAG_ALLTOALL;
+  MPI_Aint lb      = 0;
+  MPI_Aint sendext = 0;
+  MPI_Aint recvext = 0;
 
   /* Initialize. */
   int rank = comm->rank();
index 88c539e..862d3da 100644 (file)
@@ -684,7 +684,8 @@ int Request::testall(int count, MPI_Request requests[], int* outflag, MPI_Status
 {
   MPI_Status stat;
   MPI_Status *pstat = status == MPI_STATUSES_IGNORE ? MPI_STATUS_IGNORE : &stat;
-  int flag, error=0;
+  int flag;
+  int error = 0;
   int ret=MPI_SUCCESS;
   *outflag = 1;
   for(int i=0; i<count; i++){