Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sonar wants one declaration per line.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 8 Mar 2021 09:18:38 +0000 (10:18 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 8 Mar 2021 21:17:50 +0000 (22:17 +0100)
src/smpi/bindings/smpi_pmpi_type.cpp

index c82e82c..5aa26ad 100644 (file)
@@ -48,7 +48,8 @@ int PMPI_Type_get_extent(MPI_Datatype datatype, MPI_Aint * lb, MPI_Aint * extent
 
 int PMPI_Type_get_extent_x(MPI_Datatype datatype, MPI_Count * lb, MPI_Count * extent)
 {
-  MPI_Aint tmplb, tmpext;
+  MPI_Aint tmplb;
+  MPI_Aint tmpext;
   int ret = PMPI_Type_get_extent(datatype, &tmplb, &tmpext);
   if(ret == MPI_SUCCESS){
     *lb = static_cast<MPI_Count>(tmplb);