You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IF ((STEPBYSTEP .AND. ((NDAY_SIM.GT.1) .OR. (COUPLER_ITERATION.GT.1))) .OR. (NF_EXIST)) THEN
353
-
print*, 'Running STEPBYSTEP Version...'
354
353
print*, 'No need to remake grid UH | Naturalized Flow is saved from previous run ...' ! only define name of reservoir-station (NAMERS5)
355
354
D=1 ! iterate only when the cell is a reservoir
356
-
DO N =1,NO_OF_BOX(NORESERVOIRS(I),I) ! loop over cells contributing to station
357
-
IF ((RESER(CATCHIJ(N,1,NORESERVOIRS(I),I),CATCHIJ(N,2,NORESERVOIRS(I),I)).GT.0) .AND. (RESER(CATCHIJ(N,1,NORESERVOIRS(I),I),CATCHIJ(N,2,NORESERVOIRS(I),I)).NE.9999)) THEN
DO N =1,NO_OF_BOX(NORESERVOIRS(I),I) ! loop over cells contributing to station
366
+
IF ((RESER(CATCHIJ(N,1,NORESERVOIRS(I),I),CATCHIJ(N,2,NORESERVOIRS(I),I)).GT.0) .AND. (RESER(CATCHIJ(N,1,NORESERVOIRS(I),I),CATCHIJ(N,2,NORESERVOIRS(I),I)).NE.9999)) THEN
367
+
! find the reservoir order
368
+
RESORDER(I,D) = NORESERVOIRS(I)
369
+
DO II =1, (NORESERVOIRS(I)-1) ! loop over reservoirs only [NORESERVOIRS is the last element which corresponds to the station under consideration]
370
+
IF (CATCHIJ(N,2,NORESERVOIRS(I),I) .EQ. RES_DIRECT(II,1,I)) THEN
0 commit comments