We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a26dc09 commit bf7ccaaCopy full SHA for bf7ccaa
1 file changed
Routing/SourceCode/unit_hyd_routines.f
@@ -51,9 +51,9 @@ SUBROUTINE MAKE_GRID_UH
51
& (DIREC, NOB, UH_DAY, TMAX, PI, PJ, LE, UH_DAILY, KE,
52
& CATCHIJ, UHM, FR, PMAX, NCOL, NROW, UH_BOX,
53
& UH_S, UH_STRING, NAME5,NORESERVOIRS, RESER,
54
- & RESERNAME,RES_DIRECT)
+ & RESERNAME,RES_DIRECT,LAST)
55
IMPLICIT NONE
56
- INTEGER UH_DAY, TMAX, PMAX, KE
+ INTEGER UH_DAY, TMAX, PMAX, KE, LAST
57
INTEGER NOB(200)
58
INTEGER PI, PJ, LE, NCOL, NROW
59
INTEGER DIREC(NCOL,NROW,2)
@@ -76,6 +76,9 @@ SUBROUTINE MAKE_GRID_UH
76
RESORDER = I
77
END IF
78
END DO
79
+ IF (LAST .EQ. 1) THEN
80
+ RESORDER = NORESERVOIRS
81
+ END IF
82
IF (UH_STRING(1:4) .ne. 'NONE') THEN ! read UH_S grid, not make it
83
print*, 'reading UH_S grid from file'
84
open(98, file=UH_STRING, status='old')
0 commit comments