DeinoMPI

The Great and Terrible implementation of MPI-2

function index

MPI_File_get_position_shared

Returns the current position of the shared file pointer in etype units relative to the current view
int MPI_File_get_position_shared(
  MPI_File mpi_fh,
  MPI_Offset *offset
);

Parameters

fh
[in] file handle (handle)
offset
[out] offset of shared file pointer (nonnegative integer)

Remarks

MPI_FILE_GET_POSITION_SHARED returns, in offset, the current position of the shared file pointer in etype units relative to the current view.


Advice to users.

The offset can be used in a future call to MPI_FILE_SEEK_SHARED using whence = MPI_SEEK_SET to return to the current position. To set the displacement to the current file pointer position, first convert offset into an absolute byte position using MPI_FILE_GET_BYTE_OFFSET, then call MPI_FILE_SET_VIEW with the resulting displacement.

Example Code

The following sample code illustrates MPI_File_get_position_shared.

Insert code here.