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

Switch for ignoring 2nd part of IF test

ferrad01
Beginner
441 Views

We get an array subscript error when executing lines like:

ELSEIF(I.GT.1.AND.T(I).LE.T(I-1))THEN

When I = 0. Obviously the second half of the IF test does not need to be executed if I=0, due to the failure of the first test. However it is for some reason.

Is there a switch I can set somewhere to get this executed properly?

Adrian

0 Kudos
1 Reply
Steven_L_Intel1
Employee
441 Views
No, there isn't. You have a bug in your code. Please see this comp.lang.fortran discussion for a lot more information.
0 Kudos
Reply