is transformed first by mnh_expand by
DO JRR=1,KRR
ZRSMIN(JRR) = ICED%XRTMIN(JRR) * ZINV_TSTEP
END DO
then ICED%XRTMIN size is not yet accessible. Either :
acess the dimension of the array by reading the declaration using the tree
read the do-construct, access the index and guess the dimension's local array but nothing ensures that later in the routine, the data are accessed over a larger region of the array
Other example (without mnh_expand related) in mode_ice4_stepping :
with convertTypesInCompute within an if-then-stmt :
IF (ZA(JL, JV) < -1.E-20 .AND. PVART(JL, JV) > ICED%XRTMIN(JV)) THEN
In one case, (rain_ice.f90)
!$mnh_expand_array(JRR=1:KRR) ZRSMIN(1:KRR) = ICEDXRTMIN(1:KRR) * ZINV_TSTEP !$mnh_end_expand_array(JRR=1:KRR)
is transformed first by mnh_expand by DO JRR=1,KRR ZRSMIN(JRR) = ICED%XRTMIN(JRR) * ZINV_TSTEP END DO
then ICED%XRTMIN size is not yet accessible. Either :