Parallel file I/O using the NetCDF file I/O library with collective file access (all processes must participate in file access).
The following pseudo-code shows the process for writing data.
filename = "file.nc"
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.nc"
open_file_with_collective_access(filename)
read_data_from_file(data, filename)
close_file(filename)