From: Augustin Degomme Date: Mon, 19 Aug 2019 08:09:22 +0000 (+0200) Subject: Unlike errors on communicators and windows, the default behavior for files is to... X-Git-Tag: v3.24~154 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ae9ea58c48e0049739c4efaa84753e8bd81cf03e Unlike errors on communicators and windows, the default behavior for files is to have MPI_ERRORS_RETURN. ( End of advice to users.) https://www.mpi-forum.org/docs/mpi-3.1/mpi31-report/node223.htm#Node223 because why not. --- diff --git a/src/smpi/mpi/smpi_file.cpp b/src/smpi/mpi/smpi_file.cpp index adb0f50043..a7d4c60283 100644 --- a/src/smpi/mpi/smpi_file.cpp +++ b/src/smpi/mpi/smpi_file.cpp @@ -28,7 +28,7 @@ namespace smpi{ if (comm_->rank() == 0) { int size= comm_->size() + FP_SIZE; list_ = new char[size]; - errhandler_=MPI_ERRORS_ARE_FATAL; + errhandler_=MPI_ERRORS_RETURN; memset(list_, 0, size); shared_file_pointer_ = new MPI_Offset(); shared_mutex_ = s4u::Mutex::create();