Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add some missing SMPI fortran bindings (recently supported functions)
[simgrid.git] / src / smpi / bindings / smpi_f77_type.cpp
index e071025..1da7248 100644 (file)
@@ -112,14 +112,6 @@ void mpi_type_vector_(int* count, int* blocklen, int* stride, int* old_type, int
   }
 }
 
   }
 }
 
-void mpi_type_create_vector_(int* count, int* blocklen, int* stride, int* old_type, int* newtype,  int* ierr){
-  MPI_Datatype tmp;
-  *ierr= MPI_Type_vector(*count, *blocklen, *stride, simgrid::smpi::Datatype::f2c(*old_type), &tmp);
-  if(*ierr == MPI_SUCCESS) {
-    *newtype = tmp->add_f();
-  }
-}
-
 void mpi_type_hvector_(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype,  int* ierr){
   MPI_Datatype tmp;
   *ierr= MPI_Type_hvector (*count, *blocklen, *stride, simgrid::smpi::Datatype::f2c(*old_type), &tmp);
 void mpi_type_hvector_(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype,  int* ierr){
   MPI_Datatype tmp;
   *ierr= MPI_Type_hvector (*count, *blocklen, *stride, simgrid::smpi::Datatype::f2c(*old_type), &tmp);
@@ -169,6 +161,14 @@ void mpi_type_indexed_ (int* count, int* blocklens, int* indices, int* old_type,
   }
 }
 
   }
 }
 
+void mpi_type_create_indexed_(int* count, int* blocklens, int* indices, int* old_type, int*  newtype, int* ierr){
+  MPI_Datatype tmp;
+  *ierr = MPI_Type_create_indexed(*count, blocklens, indices, simgrid::smpi::Datatype::f2c(*old_type), &tmp);
+  if(*ierr == MPI_SUCCESS) {
+    *newtype = tmp->add_f();
+  }
+}
+
 void mpi_type_create_indexed_block_ (int* count, int* blocklength, int* indices,  int* old_type,  int*newtype,
                                      int* ierr){
   MPI_Datatype tmp;
 void mpi_type_create_indexed_block_ (int* count, int* blocklength, int* indices,  int* old_type,  int*newtype,
                                      int* ierr){
   MPI_Datatype tmp;