>On Jan 28, 2010, at 10:57 AM, Laurence Marks wrote:
>> I am trying to find out if there is any way to create an error-handler
>> or something else that will trap an error exit from the run-time
>> library due to a fortran I/O error, or possibly some openmpi calls or
>> options that will do the same thing.
>> Let me expand a little. I am working with a very larger fortran 90
>> code written by many people that uses mpi. While some of the
>> read/write statements have an ERR= in them, not all do and it is a big
>> job to add this to everyone (and not miss some). With some flavors of
>> mpi (openmpi is one) if one process encounters an I/O error that
>> process will crash, and the other ones can hang because no
>> termination/abort signal is sent to them ? this seems to be
>> implementation dependent.
> That's odd. What version of Open MPI are you using?
1.4.1 (I did not compile it myself.)
> If one process dies prematurely in Open MPI (i.e., before MPI_Finalize), all the others > should be automatically killed.
This does not seem to be happening. Part of the problem may be (and I
am out of my depth here) that the fortran rtl library (ifort) does not
appear to be dying prematurely, at least there is no signal that I can
catch (I'm not a good c programmer).
I posted to the Intel ifort site as well, and the response I got (see
link below) is that "There is a feature request in to add this
functionality, but it is not currently on the list for
> Jeff Squyres
Department of Materials Science and Engineering
MSE Rm 2036 Cook Hall
2220 N Campus Drive
Evanston, IL 60208, USA
Tel: (847) 491-3996 Fax: (847) 491-7820
Chair, Commission on Electron Crystallography of IUCR
Electron crystallography is the branch of science that uses electron
scattering and imaging to study the structure of matter.