Cannot open input file channel_sd_mon.txt

107 views
Skip to first unread message

Daff Gul

unread,
Feb 23, 2025, 8:38:00 AMFeb 23
to SWAT-CUP
Hello Professor Abbas pour, 

Im using swatplus cup, but I keep having this error. Please let me know how I can resolve this error

Thank you so much for your help in advance. 

F:\Nargis.swatcup\swatcup\Drought1-test1.Spe.SwatPlusCup\ParallelProcessing\20>SPE_execute.exe
running make_input
running swat_edit
Finished

simulation no=   20

running swat
                   SWAT+
            Revision 61.0.1
      Soil & Water Assessment Tool
               PC Version
    Program reading . . . executing


  Date of Sim   2/23/2025 Time   8:24: 5
 reading from pet file                   Time   8:24: 5
 reading from precipitation file         Time   8:24: 5
 reading from temperature file           Time   8:24: 5
 reading from solar radiation file       Time   8:24: 6
 reading from relative humidity file     Time   8:24: 6
 reading from wind file                  Time   8:24: 6
 reading from wgn file                   Time   8:24: 6
 reading from wx station file            Time   8:24: 6
forrtl: severe (408): fort: (10): Subscript #1 of the array RU_ELEM has value 2430 which is greater than the upper bound of 2390

Image              PC                Routine            Line        Source
swatp.exe          00007FF699FF7AA8  RU_READ_ELEMENTS          140  ru_read_elements.f90
swatp.exe          00007FF699998EB2  HYD_CONNECT               139  hyd_connect.f90
swatp.exe          00007FF69A1D99AF  MAIN__                     41  main.f90
swatp.exe          00007FF69A97B0EB  Unknown               Unknown  Unknown
swatp.exe          00007FF69A97B819  Unknown               Unknown  Unknown
swatp.exe          00007FF69A97B732  Unknown               Unknown  Unknown
swatp.exe          00007FF69A97B5EE  Unknown               Unknown  Unknown
swatp.exe          00007FF69A97B88E  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FFED858E8D7  Unknown               Unknown  Unknown
ntdll.dll          00007FFED989BF2C  Unknown               Unknown  Unknown
running SPE_extract.bat
Cannot open input file    channel_sd_mon.txt
runs finished

Tim.sim2.png
spe.png
extract.png
var.png
observed.png
error.png
para.png

Harprabhjot Kaur Dhaliwal

unread,
May 1, 2025, 9:14:58 PMMay 1
to SWAT-CUP
Hi Daff,

I’m also having this same error in SWAT+ CUP. Did you figure it out? I’d really appreciate any help.

Thanks!
Harprabhjot


Daff Gul

unread,
May 2, 2025, 9:07:55 AMMay 2
to SWAT-CUP
Hello,

This what Dr. Abbaspour suggested to me to deal with this error. 

The error originates from your SWAT+ project, not the CUP program. To identify the source of the error, run the debug version of the program (e.g., rev***_64debug.exe). Copy the debug executable from your SWAT+ installation directory into your SWAT+CUP project folder and run it. This should help you pinpoint the source of the error within the SWAT+ project.  

Best,

Harprabhjot Kaur Dhaliwal

unread,
May 2, 2025, 6:14:07 PMMay 2
to SWAT-CUP
Hi,

I tried running the debug version of my SWAT+ model and received the following error:
E:\CDL_1\CDL_2\CDL_EXPERIMENT.Spe.SwatPlusCup>SPE_execute.exe
running make_input
running swat_edit
Finished


simulation no=   1


running swat
                   SWAT+
            Revision 61.0.1
      Soil & Water Assessment Tool
               PC Version
    Program reading . . . executing


  Date of Sim   5/ 2/2025 Time  16: 9: 4
 reading from pet file                   Time  16: 9: 4
 reading from precipitation file         Time  16: 9: 4
 reading from temperature file           Time  16: 9: 4
 reading from solar radiation file       Time  16: 9: 5
 reading from relative humidity file     Time  16: 9: 5
 reading from wind file                  Time  16: 9: 6
 reading from wgn file                   Time  16: 9: 7
 reading from wx station file            Time  16: 9: 7
forrtl: severe (408): fort: (10): Subscript #1 of the array RU_ELEM has value 1801 which is greater than the upper bound of 1800

Image              PC                Routine            Line        Source
swatp.exe          00007FF64BE77AA8  RU_READ_ELEMENTS          140  ru_read_elements.f90
swatp.exe          00007FF64B818EB2  HYD_CONNECT               139  hyd_connect.f90
swatp.exe          00007FF64C0599AF  MAIN__                     41  main.f90
swatp.exe          00007FF64C7FB0EB  Unknown               Unknown  Unknown
swatp.exe          00007FF64C7FB819  Unknown               Unknown  Unknown
swatp.exe          00007FF64C7FB732  Unknown               Unknown  Unknown
swatp.exe          00007FF64C7FB5EE  Unknown               Unknown  Unknown
swatp.exe          00007FF64C7FB88E  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FFF21E9E8D7  Unknown               Unknown  Unknown
ntdll.dll          00007FFF234DBF6C  Unknown               Unknown  Unknown
running SPE_extract.bat
Cannot open input file    channel_sdmorph_mon.txt
Cannot open input file    channel_sdmorph_mon.txt
runs finished


 I’ve reviewed all related files but couldn’t find any instance of RU 1801.

Could you please suggest what I should do to resolve this?

Best regards,
Harprabhjot  

Daff Gul

unread,
May 3, 2025, 7:41:25 PMMay 3
to SWAT-CUP
did you add  rev***_64debug.exe as sawp in swatplus cup folder ? I mean it seem the error still from swatplus! that was the only solution that I knew. I hope you solve it soon.

Mario Fomaca Jr

unread,
Aug 18, 2025, 7:58:18 PMAug 18
to SWAT-CUP
I fixed this error copying all files from BACKUP folder and paste in project folder. This is due a crashing in SWAT Cup +. I dont know why.
Reply all
Reply to author
Forward
0 new messages