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
This issue happened when Sequence mode run without .CLI file, the model tried to open the .WTH file. The IPEXP subroutine has a section that build the weather file name based on the weather station on the FileX. However, there is a conflict that is causing error when running WGEN subroutines.
Another subroutine could be created to split each run mode and type of weather file to avoid conflict between different types of runs for the CSM.
The code below indicates what need to be checked:
! Generated weather data files
IF (MEWTH .EQ. 'G') THEN
IF (WSTA1(4:4) .EQ. BLANK) THEN
IF (YEAR .LT. 2000) THEN
YR = YEAR - 1900
ELSE IF (YEAR .LT. 3000) THEN
YR = YEAR - 2000
ENDIF
WRITE (FILEWG(1:12),75) WSTA,YR,'01.WTG'
ELSE
WRITE (FILEWG(1:12),76) WSTA,WSTA1,'.WTG'
ENDIF
PROCODG = 'WGD'
ENDIF
! Interactively generated weather
IF (MEWTH .EQ. 'S' .OR. MEWTH .EQ. 'W') THEN
WRITE (FILEWC(1:12),77) WSTA,'.CLI '
PROCODC = 'CLD'
ENDIF
! Measured weather data
IF (MEWTH .EQ. 'M' .OR. RNMODE .EQ. 'Y') THEN
IF (WSTA1(4:4) .EQ. BLANK) THEN
IF (YEAR .LT. 2000) THEN
YR = YEAR - 1900
ELSE IF (YEAR .LT. 3000) THEN
YR = YEAR - 2000
ENDIF
WRITE (FILEW(1:12),75) WSTA,YR,'01.WTH'
ELSE
WRITE(FILEW(1:12),76) WSTA,WSTA1,'.WTH'
ENDIF
PROCODW = 'WED'
ENDIF
IF (INDEX('GSWM',RNMODE) .LT. 0) THEN
CALL ERROR (ERRKEY,22,FILEX,LINEXP)
ENDIF
! Check for existing FILEW, FILEWC, and FILEWG
DO I = 1, 3
SELECT CASE (I)
CASE (1)
IF (MEWTH .EQ. 'M' .OR. RNMODE .EQ. 'Y') THEN
FILE_CHECK = FILEW
PROCOD = PROCODW
ELSE
CYCLE
ENDIF
CASE (2)
IF (MEWTH .EQ. 'G') THEN
FILE_CHECK = FILEWG
PROCOD = PROCODG
ELSE
CYCLE
ENDIF
CASE (3)
IF (MEWTH .EQ. 'S' .OR. MEWTH .EQ. 'W') THEN
FILE_CHECK = FILEWC
PROCOD = PROCODC
ELSE
CYCLE
ENDIF
CASE DEFAULT; CYCLE
END SELECT
The text was updated successfully, but these errors were encountered:
This issue happened when Sequence mode run without .CLI file, the model tried to open the .WTH file. The IPEXP subroutine has a section that build the weather file name based on the weather station on the FileX. However, there is a conflict that is causing error when running WGEN subroutines.
Another subroutine could be created to split each run mode and type of weather file to avoid conflict between different types of runs for the CSM.
The code below indicates what need to be checked:
The text was updated successfully, but these errors were encountered: