SGpp / DisCoTec

MPI-based code for distributed HPC simulations with the sparse grid combination technique
https://sparsegrids.org/
GNU Lesser General Public License v3.0
8 stars 6 forks source link

Correct check for file existence to use MPI_ERR_FILE_EXISTS #59

Closed cniethammer closed 1 year ago

cniethammer commented 1 year ago

MPI_File_open may fail due to multiple problems and not return MPI_SUCCESS. So check for MPI_ERR_FILE_EXISTS if you intend to check for file existence.