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

array bound runtime error

mitiwana
Beginner
517 Views
Is anyone know how to get the runtime error from array bound check i.e. without crashing the program. some what like iostat in file opening or stat in allocation of arrays?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
517 Views
You may be able to trap the exception using SIGNALQQ, but I've never tried this. Furthermore, what you could do after getting the error is quite limited - it's not like IOSTAT.

Under what circumstances would this not be a fatal error? You could always check the bounds yourself before doing the array operation and take whatever action you felt appropriate?

Steve
0 Kudos
Reply