I am new to using coarrays in Fortran. At the moment I am rewriting one of my MPI codes in CAF. My mental picture is that expressing an array as a coarray [i.e., with square brackets] simply exposes the possibility of performing communication of that array among images.
In my case I have a certain array that is declared as a coarray at the beginning. But eventually in the subroutine hierarchy I reach a point where there is no more communication required. My question is: If I pass a previously declared coarray to a subroutine, must the corresponding dummy array be declared as a coarray if it will not, in that subroutine or any subsequent calls in that routine, be accessed via communication?
Indeed, there is a deleted message in this thread, which contains the previous context and answer. Any user is free to delete their post again, though (there is a time restriction of 6 months if I read the discourse settings correctly).
However, deleting a message bumps the thread up on the main page again, due to the deletion event, which could cause some confusion.
Something along this lines was discussed here, I think: