Parallel file I/O using the MPI library file I/O with collective file access (all processes must participate in file access).
The following pseudo-code shows the process for writing data.
filename = "file.mpiio"
open_file_with_collective_access(filename)
write_data_to_file(data, filename)
close_file(filename)
The process is reversed when reading data from file, as follows.
filename = "file.mpiio"
open_file_with_collective_access(filename)
read_data_from_file(data, filename)
close_file(filename)