Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

runtime error texts

joerg_kuthe
Novice
387 Views
I wonder if it is possible to obtain the texts of the IVF runtime error messages calling an IVF routine. For example if the runtime error 41 occurs, I'd like to have a routine which returns the message "Insufficient virtual memory".
CALL IVFRuntimeError( iRTErrNo, cRTErrMsg )
INTEGER, INTENT(IN) :: iRTErrNo
CHARACTER(*), INTENT(OUT) :: cRTErrMsg


I have seen that there is a routine available named GERROR (string) but this returns the message of the last error detected and my impression that this doesn't work properly sometimes. For example, at present I have a problem when reading from a file into an allocated array. GERROR (string) returns "end-of-file during read, unit 7702", but in the debugger I see RT error 41 which is the one mentioned above.

Greetings

Jrg Kuthe
www.qtsoftware.de


0 Kudos
1 Reply
Steven_L_Intel1
Employee
387 Views
In 11.0, for which you can get a beta version (see sticky thread above), we support the Fortran 2003 IOMSG= keyword in I/O statements. This provides the text of an error message, just as you'd like.
0 Kudos
Reply