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

The best solution is wanted.

Ivan_S_
Beginner
475 Views

How to make this code better in Fortran 2003?

[fortran]
IF A == 1 THEN
(STATEMENTS)
I

100 …
[/fortran]

0 Kudos
3 Replies
mecej4
Honored Contributor III
475 Views

If the statement with number 100 occurs immediately after the IF...END IF block, all the statements similar to and including IF(B == 1) GOTO 100 are superfluous.

0 Kudos
Ivan_S_
Beginner
475 Views

.NOT.(100 occurs immediately after the IF...END IF block)

0 Kudos
JVanB
Valued Contributor II
475 Views

Check the logic in lines 03:04 and repost.

0 Kudos
Reply