n has defined a polymorphic value (i.e.
class(something)), and image
m needs to access that information. How can image
m get it?
You can’t have a coarray of
class(something), because all images (in a team) must allocate that coarray at the same time and with the same type, but only one image knows what the type must be.
You could have a coarray of something with that
class(something) as a component, but you still won’t be able to perform the communication because of the following constraints.
C917 (R911) Except as an actual argument to an intrinsic inquiry function or as the designator in a type parameter inquiry, a data-ref shall not be a coindexed object that has a polymorphic allocatable potential subobject component.
C918 Except as an actual argument to an intrinsic inquiry function or as the designator in a type parameter inquiry, if the rightmost part-ref is polymorphic, no other part-ref shall be coindexed.
Is this just something that isn’t possible? Have I missed something? Anybody have some ideas?