Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Switch for ignoring 2nd part of IF test

ferrad01
Beginner
358 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
358 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