Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p532c Compile - errors with run_etm.csh, getafoload.f #5

Closed
eahmadis opened this issue Apr 14, 2017 · 40 comments
Closed

p532c Compile - errors with run_etm.csh, getafoload.f #5

eahmadis opened this issue Apr 14, 2017 · 40 comments

Comments

@eahmadis
Copy link
Collaborator

Although I don't get any compiling error, I get the following error when running p532c:

"HSPF simulation completed.
../../..//run/useful/random.ksh: Command not found.
At line 15 of file main.f (unit = 5, file = 'stdin')
Fortran runtime error: End of file
‘../../..//config/blank_wdm/river.wdm’ -> ‘PL1_5910_0001.wdm’
Land Loads and transfer wdms for
p532cal_062211 PL1_5910_0001 1985 2005

PROBLEM FILE WRITTEN

Problem opening following file
../../../output/etm/p532cal_062211/A24037toPL1_5910_0001.etm

PROBLEM in etm

PROBLEM FILE WRITTEN

Problem opening following file
../../../output/etm/p532cal_062211/A24037toPL1_5910_0001.etm"

@rburghol
Copy link
Collaborator

Can you list the commands that you used to run this? Also, what path were you in when running? Thanks!

@eahmadis
Copy link
Collaborator Author

eahmadis commented Apr 14, 2017

I followed the Readme file on the server to do a test run:

"cd ../../run/standard/
csh run_all.csh p532cal_062211 stmary"

@rburghol
Copy link
Collaborator

rburghol commented Apr 14, 2017

Cool - I am going through the run process step by step now to see where the stuff blows up. The system does these things in order when you call "run_all.csh p532cal_062211 stmary":

  1. run_lug.csh p532cal_062211 stmary - generates landuse model input (.uci) files,
  2. run_rug.csh p532cal_062211 stmary - generates river model input (.uci) files
  3. run_land.csh p532cal_062211 stmary - it runs the land model
  4. run_etm.csh p532cal_062211 stmary - converts output from the land model to a WDM that is referenced by the river model as input
  5. run_river.csh p532cal_062211 stmary - it runs the river model
  6. run_scenario_postproc.csh p532cal_062211 stmary - does some data summary stuff and cleanup
  7. run_scenario_postproc.csh p532cal_062211 stmary - does some data summary stuff and cleanup
  8. summarize_output_aveann.csh p532cal_062211 stmary 1991 2000 - does a period summary for calibration or validation purposes

So far, I have completed steps 1-3, and it looks like from your error that something blows up around the time of the ETM conversion to WDM part. Which is probably fairly simple to fix. If you want to pick up this process at the "run_etm.csh" step, that would be cool.

@eahmadis
Copy link
Collaborator Author

Can you please explain this further? Did you run these .csh separately? Do you want me to run them separately too and see where I get the error?

@rburghol
Copy link
Collaborator

Yes and yes :). But you can start at step 4 since I completed steps 1-3 in your model tree just to be certain that we had the same conditions.

@eahmadis
Copy link
Collaborator Author

Thanks Rob.

Yes, the issues's in the fourth one "run_etm.csh p532cal_062211 stmary". The first three work ok.

@rburghol
Copy link
Collaborator

OK - I think that it may be worth taking this to the CBP listserv to see if anyone has insight. I suspect that it has something to do with the shell that they are using "csh" and how it handles file paths, because it is not finding the "random.ksh" file, but that file is most certainly present in the install tree. I am guessing this random.ksh gives them some string to use for a temp file name or something.

Can you try to reach out to the list?

@eahmadis
Copy link
Collaborator Author

Sure! Who would be the best person to ask? Gary Shenk?

@eahmadis
Copy link
Collaborator Author

I was able to resolve this error by installing "ksh" (it was not on my computer before). That error's gone now, but I get another error with "run_etm.csh p532cal_062211 stmary":

PROBLEM FILE WRITTEN

Error: opening wdm= ***
../../../tmp/wdm/land/afo/p532cal_062211/afoA24037.wdm

"PROBLEM in etm

PROBLEM FILE WRITTEN

Error: opening wdm= ***
../../../tmp/wdm/land/afo/p532cal_062211/afoA24037.wdm"

@rburghol
Copy link
Collaborator

This interesting - it seems like it makes it through many run files OK, but is failing at afo? Here is acopy of the log justfor info:

Binary ETM file for PL1_5910_0001 p532cal_062211
   reading data files
   all data read, make binary etm file
A24037 for hvf hwm lwm hom alf hyw hyo pas trp urs nhi nlo nho nal nhy npa rpd npd rcn afo rid nid
F24037 for hvf rpd npd rcn rid nid
'../../..//config/blank_wdm/river.wdm' -> 'PL1_5910_0001.wdm'
 Land Loads and transfer wdms for
 p532cal_062211 PL1_5910_0001         1985          2005

PL1_5910_0001 A24037, for
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.051 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.051 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.051 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, hvf
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.051 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.051 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.051 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, hwm
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, lwm
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, hom
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, alf
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, hyw
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, hyo
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, pas
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.052 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.052 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.052 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, trp
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.052 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.052 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.052 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, urs
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, nhi
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, nlo
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, nho
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, nal
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, nhy
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.057 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.057 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.057 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, npa
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.052 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.052 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.052 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, rpd
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.052 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.052 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.052 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, npd
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.052 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.052 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.052 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, rcn
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO IFWO AGWO
   River variable  2 HEAT BMP flo  1.000 Land variables =>  SOHT IOHT AOHT
   River variable  3 DOXY BMP flo  1.000 Land variables =>  SDOX IDOX ADOX
   River variable  4 SAND BMP sed  0.046 Land variables =>  SEDM
   River variable  5 SILT BMP sed  0.046 Land variables =>  SEDM
   River variable  6 CLAY BMP sed  0.046 Land variables =>  SEDM
   River variable  7 NO3D BMP tn   0.600 Land variables =>  SNO3 INO3 ANO3
   River variable  8 NH3D BMP tn   0.600 Land variables =>  SNH3 INH3 ANH3
   River variable  9 NH3A
   River variable 10 NH3I BMP tn   0.600 Land variables =>  DNH3
   River variable 11 NH3C BMP tn   0.600 Land variables =>  DNH3
   River variable 12 RORN BMP tn   0.600 Land variables =>  DRON SRON IRON ARON
   River variable 13 PO4D BMP tp   0.750 Land variables =>  SPO4 IPO4 APO4
   River variable 14 PO4A
   River variable 15 PO4I BMP tp   0.750 Land variables =>  DPO4
   River variable 16 PO4C BMP tp   0.750 Land variables =>  DPO4
   River variable 17 RORP BMP tp   0.750 Land variables =>  DRON SRON IRON ARON
   River variable 18 BODA BMP bod  0.675 Land variables =>  DLON SLON ILON ALON
   River variable 19 TORC BMP bod  0.675 Land variables =>  DRON SRON IRON ARON
   River variable 20 PHYT
PL1_5910_0001 A24037, afo
   River variable  1 WATR BMP flo  1.000 Land variables =>  SURO

 PROBLEM FILE WRITTEN

Error: opening wdm=  ***
../../../tmp/wdm/land/afo/p532cal_062211/afoA24037.wdm

@eahmadis
Copy link
Collaborator Author

I exactly get the same thing. Thought to take this away?

@rburghol
Copy link
Collaborator

rburghol commented Apr 14, 2017 via email

@rburghol
Copy link
Collaborator

rburghol commented Apr 14, 2017 via email

@eahmadis
Copy link
Collaborator Author

eahmadis commented Apr 14, 2017

The wdm files are smaller in the afo folder compared to the other folders (land uses) at: ./p532c/tmp/wdm/land

Although I see (in the log report) that the UCI has been generated similar to the other land uses.

@rburghol
Copy link
Collaborator

I think The error is it that it's saying it can't find it, but it could be that it's in properly formed in the air is misleading. One way to check it out would be to do an export of that WDMWD I am but it could be that it's in properly formed in the air is misleading. One way to check it out would be to do an export of that WDM using wdimex - any luck oj bay model listserv?

@eahmadis
Copy link
Collaborator Author

eahmadis commented Apr 14, 2017 via email

@rburghol
Copy link
Collaborator

I think the best approach is to contact the listserv - https://sourceforge.net/p/npsource/mailman/npsource-cbpmodel/

@eahmadis
Copy link
Collaborator Author

Just posted it there. It's pending approval by the moderator. Can you later check and see if you see it? It's my first time posting this, so wanted to make sure that everyone can see it ok.

@rburghol
Copy link
Collaborator

Ahh - just subscribe to the list and you should be good to go.

@rburghol
Copy link
Collaborator

rburghol commented May 1, 2017

From John Massey at CBP:
Below is a diff of changes that I believe Gopal made to address the same issue you are having. I cannot guarantee this is everything that is needed and I will continue digging some to see if I can find anything else. The CLOUDFISH _* folder is just a copy of the etm_and_postproc folder in the same directory


centos@ip-10-128-64-61:/modeling/p532/code/src/etm/CLOUDFISH_etm_and_postproc$ diff main.f ../etm_and_postproc/main.f
342c342
<                   call getafoload(wdmlnd,rscen,rseg,LandScen(l),l2r(ns),
---
>                   call getafoload(rscen,rseg,LandScen(l),l2r(ns),


1 centos@ip-10-128-64-61:/modeling/p532/code/src/etm/CLOUDFISH_etm_and_postproc$ diff getafoload.f getafoload.f_back
6c6
<       subroutine getafoload(wdmfil,rscen,rseg,lscen,lseg,
---
>       subroutine getafoload(rscen,rseg,lscen,lseg,
66c66
< c      parameter (wdmfil=dfile+10)
---
>       parameter (wdmfil=dfile+10)
74c74
<       double precision annflow(EarliestYear:LatestYear)
---
>       real annflow(EarliestYear:LatestYear)
228,229c228,229
< c      call wdbopnlong(wdmfil,wdmfnam,1,err)     ! open land read only
< c      if (err .ne. 0) go to 996
---
>       call wdbopnlong(wdmfil,wdmfnam,1,err)     ! open land read only
>       if (err .ne. 0) go to 996
249,250c249
<         if (year.ne.oldyear .and.oldyear.le.year2) then
<           print*,oldyear,annflow(oldyear)
---
>         if (year.ne.oldyear .and.year.le.year2) then
294,295c293,294
< c      call wdflcl(wdmfil,err)
< c      if (err.ne.0) go to 997
---
>       call wdflcl(wdmfil,err)
>       if (err.ne.0) go to 997

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 3, 2017

Can you please explain this a bit further? I don't get what needs to be done

@rburghol
Copy link
Collaborator

rburghol commented May 3, 2017

Sorry if that was vague. The shaded text block is the output of a routine called "diff" that compares changes between 2 files. The lines marked with "<" are the original file line, and the lines marked with ">" are the lines that were changed in the new version. The "6c6" references are in the format "line # in file1"c"line # of file 2"

So, if you open the files on our install and edit the lines that correspond to "<" to have the text shown with ">" you should be good to go.

Note: diff syntax is "diff file1 file2" and the "<" and ">" are relative to the order of the files in the command, NOT any implied Before/After - so if you run "diff file1 file2" the "<" will pertain to file1 and ">" to file2, whereas if you ran "diff file2 file1" the "<" would pertain to file2, and the ">" would pertain to file1.

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 4, 2017

There's a mix of situtations in those two files (main.f and getafoload.f) in my folder (.\p532c\code\src\etm\etm_and_postproc). Some of them currently match ">" lines and some match "<". I tried changing all but got the same modeling error that I had before.

@rburghol
Copy link
Collaborator

rburghol commented May 4, 2017

Did you remember to remove the old executables and recompile after the code changes?

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 4, 2017

no. do you mean cleaning the make files?

@rburghol
Copy link
Collaborator

rburghol commented May 4, 2017

Yup - and I think that we ran into situations in the past where the "make clean" didn't always remove all files, so you may want to do an "ls -l" and not the dates of the etm_and_postproc executables to make sure that they get updated after you compile, if not, you will have to remove them manually then recompile.

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 4, 2017

hmm. now I see an error when compiling the code:

"Warning: Character length of actual argument shorter than of dummy argument 'tabnam' (11/64) at (1)
getafoload.f:66.32:

  parameter (wdmfil=dfile+10)                                       
                            1

Error: PARAMETER attribute conflicts with DUMMY attribute in 'wdmfil' at (1)
f77: error: getafoload.o: No such file or directory"

Of what John said, I don't see a change in the line (wdmfil=dfile+10). do you?

I also don't recall we exactly faced the first error. do you? If not, should I open a new thread for it?

@rburghol
Copy link
Collaborator

rburghol commented May 4, 2017

Seems like the issue that is critical to solving this one, so let's just solve it here. And, it is likely part of the replacement code that they sent? Can you include the line before the error printout so that we can see what the code that caused it was?

@rburghol
Copy link
Collaborator

rburghol commented May 4, 2017

Yeah - the change he made was to comment out the line -- the line is ignored when "C" is the first character of a line in fortran.

@rburghol
Copy link
Collaborator

rburghol commented May 4, 2017

I amend my statement, I think that he actually UN-commented that line:

< c      parameter (wdmfil=dfile+10)
---
>       parameter (wdmfil=dfile+10)

There appear to be a couple of other instances where that was done.

@rburghol
Copy link
Collaborator

rburghol commented May 5, 2017

Just looking through this, I think my assignment of the pre and post fioles may have been wrong -- perhaps the "CLOUDFISH" files, i.e. "<" are what we are supposed to change them TO. You may have indicated earlier that it appeared the changes were going in a different direction than what I said. Can you let me know which way you have been making the changes? I will follow up with John to get clarification as well.

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 5, 2017

Adding "C" in the beginning of those lines took that error away, but still no output's generated.

" creating data output for PL1_5910_0001 p532cal_062211
land segment A24037 WWTP, Indust Point Source, CSO, Septic, Atmospheric Deposition
land segment F24037 WWTP, Indust Point Source, CSO, Septic, Atmospheric Deposition
Average Annual River Load p532cal_062211 PL1_5910_0001 1991 2000
FLOW HEAT NH3X NO23 ORGN TOTN PO4X ORGP TOTP TSSX ORGC TSED
Transport factors for p532cal_062211 PL1_5910_0001
average annual for 1991 to 2000
Delivery factors for p532cal_062211 PL1_5910_0001
average annual for 1991 to 2000
Delivered loads for p532cal_062211 PL1_5910_0001
average annual for 1991 to 2000
../fragments/set_tree: No such file or directory."

Although I see "set_tree" in that directory. Thoughts?

@rburghol
Copy link
Collaborator

rburghol commented May 5, 2017

Can you give me some more details? You're saying this error went away:

Error: opening wdm=  ***
../../../tmp/wdm/land/afo/p532cal_062211/afoA24037.wdm

and now it proceeds farther along the routine? How much farther along?

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 5, 2017

The error was on river segment "PL1_5910_0001", land segment "A24037" and land use "afo". It's not stuck there anymore in the "etm" module (run_etm.csh). It goes further down and seems like it fails at the last module (summarize_output_aveann.csh).

@rburghol
Copy link
Collaborator

rburghol commented May 5, 2017

Cool - sounds like we need to debug summarize_output_aveann.csh - can you migrate your code changes to deq2 for me? I will verify that they work there, and produce the same new error :), and then commit them to git.

@rburghol rburghol changed the title p532c Running Issue p532c Compile - errors with run_etm.csh, getafoload.f May 5, 2017
@rburghol
Copy link
Collaborator

rburghol commented May 5, 2017

Hey - I renamed this issue and propose opening another thread to debug "run_scenario_postproc.csh"

  1. run_lug.csh p532cal_062211 stmary - generates landuse model input (.uci) files,
  2. run_rug.csh p532cal_062211 stmary - generates river model input (.uci) files
  3. run_land.csh p532cal_062211 stmary - it runs the land model
  4. run_etm.csh p532cal_062211 stmary - converts output from the land model to a WDM that is referenced by the river model as input
  5. run_river.csh p532cal_062211 stmary - it runs the river model
  6. run_scenario_postproc.csh p532cal_062211 stmary - does some data summary stuff and cleanup
  7. run_scenario_postproc.csh p532cal_062211 stmary - does some data summary stuff and cleanup
  8. summarize_output_aveann.csh p532cal_062211 stmary 1991 2000 - does a period summary for calibration or validation purposes

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 5, 2017

Yes, we got the error on 4 (etm), but we don't get any error until 8.

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 5, 2017

I can run all the "csh" of the "run_all.csh", except the last one (summarize). I get this:

"usage: summarize_output_aveann.csh scenario basin year1 year2
or summarize_output_aveann.csh scenario basin year1 year2 tree"

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 5, 2017

I can't copy the files to deq2 computer. does this folder (p532c-ubuntu) still exist?

@eahmadis
Copy link
Collaborator Author

eahmadis commented May 8, 2017

I get an error when transferring the files.

"rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]"

@rburghol rburghol closed this as completed May 8, 2017
@rburghol rburghol mentioned this issue Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants