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

CALL EXIT vs STOP

chauvjo
Novice
710 Views

I am working with a legacy code which contains the line "CALL EXIT" to quit the program when an error is encountered.  Can someone explain the difference between "CALL EXIT" and STOP?

Thanks....

0 Kudos
1 Reply
Steven_L_Intel1
Employee
710 Views

STOP is standard, CALL EXIT is an extension. STOP lets you display a text message where EXIT doesn't. Both let you set an exit status value. Otherwise they are pretty much the same.

0 Kudos
Reply