[J3] FORM TEAM statement NEW_INDEX= specifier & failed images

Malcolm Cohen malcolm at nag-j.co.jp
Mon May 6 20:55:06 EDT 2019


What happens in the case where an image specifies both NEW_INDEX= and
STAT= in a FORM TEAM statement, and the image index specified for
NEW_INDEX= turns out to be greater than the number of images in the
new team due to image failure during the execution of FORM TEAM?



This cannot happen.  A failed image does not participate in program execution so cannot specify a team number.


FORM TEAM is not a multi-step operation with exposed internal failure modes, so either the effect is as if the image failed “immediately before FORM TEAM” (in which case STAT_FAILED_IMAGE is returned, and the NEW_INDEX= values must match the number of active images in the new team), or the effect is as if the image failed “immediately after FORM TEAM”, in which case there is no error (STAT==0), it’s just that some of the images in the new team failed very quickly afterwards.


This is not terribly explicit, but I don’t see any other way to interpret the text that’s actually there.  For there to be weird effects with exposed internal failure modes *we’d have to have allowed that* and we did not.




..............Malcolm Cohen, NAG Oxford/Tokyo.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20190507/dab6e4ad/attachment.html>

More information about the J3 mailing list