X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f3b7e5f4b4d7c87ee3e8827313ec966ea8fc8387..db41dc7d999a5792aca42198b5bc87edb2dbfcce:/src/smpi/bindings/smpi_f77_file.cpp diff --git a/src/smpi/bindings/smpi_f77_file.cpp b/src/smpi/bindings/smpi_f77_file.cpp index 8c757a1530..34ef481a74 100644 --- a/src/smpi/bindings/smpi_f77_file.cpp +++ b/src/smpi/bindings/smpi_f77_file.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2020. 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. */ @@ -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(); } } @@ -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 +}