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

How to skip the terminated subroutine and move on?

royxu
Beginner
309 Views
Hi,
I used NAG library d01daf to calculate double intergration in the 100 simulations. It works fine until it reaches 87 simulation, and I noticed the error message said that "Abnormal exit from NAG library routine D01DAF: IFAIL=10, NAG hard failure - execution terminated". My question here is how to skip this specific simulation and move on to the 88 simulation when the error occurs. I do want the program finish even if there are some errors happened in the middle.
Thanks!
Roy
0 Kudos
1 Reply
royxu
Beginner
309 Views

I figured it out by myself. The way to do this is to assign IFAIL =1 before the subroutine is called. In that case, the program will continue even though an error occurs.

Roy

0 Kudos
Reply