Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define class SmpiBenchGuard, and use RAII to handle smpi_bench_end()/smpi_bench_begin().
[simgrid.git] / src / smpi / bindings / smpi_f77_file.cpp
index 8c757a1530e3f101364a04310d1b5ca36ff7da45..ac487ba30f33bfd3791684d2538c0d7b3821f304 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -26,7 +26,7 @@ void mpi_file_open_ ( int* comm, char* filename, int* amode, int* info, int* fh,
   MPI_File tmp;
   *ierr= MPI_File_open(simgrid::smpi::Comm::f2c(*comm), filename, *amode, simgrid::smpi::Info::f2c(*info), &tmp);
   if (*ierr == MPI_SUCCESS) {
-    *fh = tmp->add_f();
+    *fh = tmp->c2f();
   }
 }