The following line in my code creates a stack overflow:
J(1:N,1:M) = J_COARRAY[IMG]%VALUES
VALUES is a rank 2 array with dimensions smaller than those of J. The compiler is set so that warnings are issued when temporary arguments are created (which I suppose, is not really the case here since no warnings were issued). Does the transfer of data from one image to an other requires the creation of a temporary buffer (which would cause the stack overflow)?
I suppose the work around is to allocate arrays on the heap then?