135. ERROR STOP vs. STOP.#

topic: Basics

Note

This tip is a draft1.

Fortran 2008 introduced the ERROR STOP statement, which can be used in PURE procedures, unlike STOP. Error stop or stop can be followed by an integer or string that is printed. Error stop on one coarray image will terminate the entire program.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.