@Vladimir F ,
error stop [ stop-code ] ! stop-code is an integer or default character constant expression and has the same meaning as for the stop statement.
, stop. coarray (, ,...), , , , , , . , , . error stop , .
On the contrary, one operator stopstops only those images that have reached it, as far as I know, and used it in Coarray Fortran. Other images may check the status of a specific image or images that have failed (stopped) using
sync images([image numbers],stat=syncstat)
if (syncstat==stat_stopped_image) then
! do something appropriate
end if
The flag stat_stopped_imageis a constant accessible from the built-in module iso_fortran_envin Fortran 2008. Next.
source
share