Page 1 of 1
metset.f error
Posted: July 16th, 2015, 1:18 pm
by thomasb
Code: Select all
/usr/local/src/Smoke/hysplit/trunk/exec/hycs_std 20150716-121032
HYSPLIT4 - Initialization 20150716-121032
USE: svn info | tail -n3
to fill in these three records
with the version information!
NOTICE main: using namelist file - SETUP.20150716-121032
At line 315 of file metset.f (unit = 70, file = 'MESSAGE.20150716-121032')
Fortran runtime error: Cannot write to file opened for READ
Getting this error when running hycs_std, has anyone seen this before or know what might be causing it?
When I open up the metset.f file line 315 is part of an IF statement that goes like this.
Code: Select all
313 INQUIRE(UNIT=KF21,OPENED=FTEST)
314 IF(FTEST)THEN
315 WRITE(KF21,*)'Simulation Date (CCYYMMDD): ',REAL_CLOCK(1)(:8)
Any help would be appreciated.
Re: metset.f error
Posted: July 21st, 2015, 7:58 am
by barbara.stunder
Have you successfully run other simulations with that hycs_std executable, for example testing/xrun.scr? If so, then what is different here? The MESSAGE file should not have been opened READ-only.
A separate issue is that the message "USE: svn info | tail ..." is there because there is an "INCLUDE 'version2.inc'" in the main source code for hycs_std (source/hymodelc.F). The file is apparently not in your source directory, but the installation should have put it there. Then when hycs_std is run, the message says what version number it is.
Re: metset.f error
Posted: July 23rd, 2015, 11:17 am
by thomasb
I have run xrun.scr and the only error it had was the version information.
I checked and I do have version2.inc in the source directory.
Is there any way these two problems are linked?
Re: metset.f error
Posted: July 23rd, 2015, 10:06 pm
by ariel.stein
The problems do not seem to be related. I am assuming you are using the linux version, so I would suggest you run the "update.sh" script to get the latest version of the model. After you get the new version you should have 2 files named version1.inc and version2.inc in your source directory. They basically describe the version number you are running. If you continue to have this problem please let us know
Re: metset.f error
Posted: July 28th, 2015, 11:27 am
by thomasb
I have both of those files already, in .../hysplit/trunk/source