Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] MPI_FILE_READ: wrong file-size does not raise an exception
From: Stefan Mauerberger (stefan.mauerberger_at_[hidden])
Date: 2013-02-11 10:51:34

Hi Everyone!

Playing around with MPI_FILE_READ() puzzles me a little. To catch all
errors I set the error-handler - the one which is related to file I/O -
However, when reading from a file which has not the necessary size
MPI_FILE_READ(...) returns 'MPI_SUCCESS: no errors'. Well, read values
are just a mess.
Does anyone have an idea how to catch such an error?


Btw.: Attached, there is a minimal example in Fortran.