Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a non-existing MPI_2LONG datatype to handle some corner cases in fortran
[simgrid.git] / src / smpi / smpi_mpi_dt.c
index bfd4b03..90572e7 100644 (file)
@@ -51,6 +51,10 @@ typedef struct {
   float value;
   float index;
 } float_float;
+typedef struct {
+  long value;
+  long index;
+} long_long;
 typedef struct {
   double value;
   double index;
@@ -114,6 +118,7 @@ CREATE_MPI_DATATYPE(MPI_SHORT_INT, short_int);
 CREATE_MPI_DATATYPE(MPI_2INT, int_int);
 CREATE_MPI_DATATYPE(MPI_2FLOAT, float_float);
 CREATE_MPI_DATATYPE(MPI_2DOUBLE, double_double);
+CREATE_MPI_DATATYPE(MPI_2LONG, long_long);
 
 CREATE_MPI_DATATYPE(MPI_LONG_DOUBLE_INT, long_double_int);