SCORPIO  1.8.0
Functions/Subroutines
PIO_writedof

Write/Save the I/O decomposition. More...

Functions/Subroutines

subroutine spio_decomp::pio_writedof_int (fname, gdims, map, comm, ioid, ierr)
 Write/Save an I/O decomposition. More...
 
subroutine spio_decomp::pio_writedof_offset (fname, gdims, map, comm, ioid, ierr)
 Write/Save an I/O decomposition. More...
 

Detailed Description

Write/Save the I/O decomposition.

Function/Subroutine Documentation

◆ pio_writedof_int()

subroutine spio_decomp::pio_writedof_int ( character(len=*), intent(in)  fname,
integer, dimension(:), intent(in)  gdims,
integer(i4), dimension(:), intent(in)  map,
integer, intent(in)  comm,
integer, intent(in), optional  ioid,
integer, intent(out), optional  ierr 
)

Write/Save an I/O decomposition.

Parameters
[in]fnameThe name of the output file where the I/O decomposition will be saved/written out
[in]gdimsThe global dimensions of the I/O decomposition
[in]mapThe mapping between local data index and the global linearized index for each local data element e.g. If after partitioning the local array contains A(2,3) and A(3,3) of an array A[4x4], the map needs to contain [10, 11] corrsponding to the linearized indices of A(2,3) & A(3,3)
[in]commThe MPI communicator (that contains the MPI processes in the I/O system associated with the I/O decomposition)
[in]ioid(Optional) The I/O decomposition id
[out]ierr(Optional) : The error return code. Set to PIO_NOERR on success, or an error code otherwise (See PIO_seterrorhandling for more information on how to customize/set error handling)

◆ pio_writedof_offset()

subroutine spio_decomp::pio_writedof_offset ( character(len=*), intent(in)  fname,
integer, dimension(:), intent(in)  gdims,
integer(pio_offset_kind), dimension(:), intent(in)  map,
integer, intent(in)  comm,
integer, intent(in), optional  ioid,
integer, intent(out), optional  ierr 
)

Write/Save an I/O decomposition.

Parameters
[in]fnameThe name of the output file where the I/O decomposition will be saved/written out
[in]gdimsThe global dimensions of the I/O decomposition
[in]mapThe mapping between local data index and the global linearized index for each local data element e.g. If after partitioning the local array contains A(2,3) and A(3,3) of an array A[4x4], the map needs to contain [10, 11] corrsponding to the linearized indices of A(2,3) & A(3,3)
[in]commThe MPI communicator (that contains the MPI processes in the I/O system associated with the I/O decomposition)
[in]ioid(Optional) The I/O decomposition id
[out]ierr(Optional) : The error return code. Set to PIO_NOERR on success, or an error code otherwise (See PIO_seterrorhandling for more information on how to customize/set error handling)