(j3.2006) Fortran 2008 "ALL STOP" and exit status code
Tobias Burnus
burnus
Wed Jan 30 10:11:02 EST 2008
Hello,
From the Fortran 2008 draft standard:
"Execution of a STOP statement initiates normal termination of
execution. Execution of an ALL STOP statement initiates error
termination of execution."
NOTE 8.28: "If the stop-code is of type character or does not appear, or
if an END PROGRAM statement
is executed, it is recommended that the value zero be supplied as the
process exit status, if the
processor supports that concept."
As "ALL STOP" initializes an "error termination" should one not then
recommend to return a non-zero status for stop codes of the type character?
Additionally, it is not fully clear to me whether STOP and ALL STOP stop
a single image or all images. "When an image is terminated by a STOP or
ALL STOP statement" implies that it only stops a single image; however,
"ALL STOP" implies by its name that all images are stopped.
Tobias
More information about the J3
mailing list