The FileWriter provides a mechanism to write data to a file. In essence, this class wraps the standard file class to write data that are global in MPI to a file. In fact, data are written on the processor with MPI rank 0 only. It is recommended to use FileWriter rather than open in order to write code that is running with and without MPI. It is save to use open under MPI to read data which are global under MPI.
The following methods are available: