Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rework the doc of model-check/replay, and add an example with sthread
[simgrid.git] / src / smpi / bindings / smpi_f77_file.cpp
index ac487ba30f33bfd3791684d2538c0d7b3821f304..34ef481a74b89fdcd5b8a0431d6ceaceb811f080 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2023. 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. */
@@ -41,10 +41,19 @@ void mpi_file_seek_shared_(int* fh, MPI_Offset* offset, int* whence, int* ierr){
 void mpi_file_get_position_(int* fh, MPI_Offset* offset, int* ierr){
        *ierr= MPI_File_get_position(simgrid::smpi::File::f2c(*fh), offset);
 }
+
 void mpi_file_get_position_shared_(int* fh, MPI_Offset* offset, int* ierr){
        *ierr= MPI_File_get_position_shared(simgrid::smpi::File::f2c(*fh), offset);
 }
 
+void mpi_file_get_size_(int* fh, MPI_Offset* size, int* ierr){
+       *ierr= MPI_File_get_size(simgrid::smpi::File::f2c(*fh), size);
+}
+
+void mpi_file_set_size_(int* fh, MPI_Offset* size, int* ierr){
+       *ierr= MPI_File_set_size(simgrid::smpi::File::f2c(*fh), *size);
+}
+
 void mpi_file_read_ ( int* fh, void* buf, int* count, int* datatype, MPI_Status* status, int* ierr){
   *ierr=  MPI_File_read(simgrid::smpi::File::f2c(*fh), buf, *count, simgrid::smpi::Datatype::f2c(*datatype), status);
 }
@@ -108,4 +117,4 @@ void mpi_file_get_view_(int* fh, MPI_Offset* disp, int* etype, int* filetype, ch
 }
 
 
-}
\ No newline at end of file
+}