Hi,
I'm having a problem that ROMS only runs when NDEFHIS=0 in the ocean.in file. This means it produces one very large history file. I would like to produce multiple history files so my model does not encounter problems when it runs for long periods of time. But if I change the value of NDEFHIS=720 my model crashes as soon as it tries to write to the history file with the following error:
NETCDF_PUT_FVAR_1D - error while writing variable: ocean_time
in input file: /scratch/sap12/New_COAWST/Output_CFSR_2/Med12_his.nc
call from: wrt_his.F
ROMS/TOMS - Output error ............ exit_flag: 3
And no history file is produced at all. I have attached my ocean.in file. Any help on this would be really appreciated.
Many thanks,
Sam
ROMS only runs with NDEFHIS set to zero
ROMS only runs with NDEFHIS set to zero
- Attachments
-
- ocean_Med12_CFSR_SODA_Paul.in
- (85.5 KiB) Downloaded 398 times
- arango
- Site Admin
- Posts: 1368
- Joined: Wed Feb 26, 2003 4:41 pm
- Location: DMCS, Rutgers University
- Contact:
Re: ROMS only runs with NDEFHIS set to zero
Maybe you don't have privileges to write to the /scratch/sap12/New_COAWST/Output_CFSR_2 directory or that path doesn't exits... It is kind of suspicious that you cannot even create the NetCDF file. Perhaps, there are some problems with NetCDF library that you compiled.
Re: ROMS only runs with NDEFHIS set to zero
Hi thanks for the reply,
I do have permission to the directory though - both the restart and station file are created in the directory for NDEFHIS=720. Furthermore, if I set NDEFHIS=0 my model will run for full time period creating history, restart, station and average files in the directory.
The only other thing I can think of that might be both mentioning is that I have made changes to the varinfo.dat file so my forcing files are correctly read in - for most of my forcing variables I have changed the time label to 'time' eg 'pair_time' was changed to 'time' and 'tair_time' was changed to 'time' etc.
But, I'm not sure why changing the varinfo.dat file would make a difference. In fact I find it difficult to think of a problem that would only effect my run if NDEFHIS is non-zero.
Sam
I do have permission to the directory though - both the restart and station file are created in the directory for NDEFHIS=720. Furthermore, if I set NDEFHIS=0 my model will run for full time period creating history, restart, station and average files in the directory.
The only other thing I can think of that might be both mentioning is that I have made changes to the varinfo.dat file so my forcing files are correctly read in - for most of my forcing variables I have changed the time label to 'time' eg 'pair_time' was changed to 'time' and 'tair_time' was changed to 'time' etc.
But, I'm not sure why changing the varinfo.dat file would make a difference. In fact I find it difficult to think of a problem that would only effect my run if NDEFHIS is non-zero.
Sam
Re: ROMS only runs with NDEFHIS set to zero
What's odd is that it's trying to write to /scratch/sap12/New_COAWST/Output_CFSR_2/Med12_his.nc
as opposed to Med12_his_0001.nc. I would have to watch this in the debugger, or add print statements to output.F (or more).
as opposed to Med12_his_0001.nc. I would have to watch this in the debugger, or add print statements to output.F (or more).
Re: ROMS only runs with NDEFHIS set to zero
Hi all,
has there been a solution to this problem ? I am currently having a similar issue with roms-3.6. I can use multiple output files with NDEFHIS=360 (for my particular setting) but not any other number (!), it then gives me the same error as indicated in the thread above. ROMS is trying to write to ocean_his.nc instead of ocean_his_0001.nc or so. I have not had this problem before but have been running 2d simulations mostly...but this seems rather unrelated. I wonder if this is related to changes in the roms.in file ?
ideas anyone
Frank
has there been a solution to this problem ? I am currently having a similar issue with roms-3.6. I can use multiple output files with NDEFHIS=360 (for my particular setting) but not any other number (!), it then gives me the same error as indicated in the thread above. ROMS is trying to write to ocean_his.nc instead of ocean_his_0001.nc or so. I have not had this problem before but have been running 2d simulations mostly...but this seems rather unrelated. I wonder if this is related to changes in the roms.in file ?
ideas anyone
Frank
Re: ROMS only runs with NDEFHIS set to zero
Correct! I met the same problem with ROMS 3.0. In the beginning, when I set the ocean_time to zero, it worked with the non-zero NDEFHIS, but when I set the ocean_time to non-zero to change the starting time to later date, it appears the problem. but if set the NDEFHIS to zero, it works. if the history is a single file, it will be 200G in size! Do I have to set all the time parameters to the new starting time? I think it is a bug.samphibbs wrote:Hi,
I'm having a problem that ROMS only runs when NDEFHIS=0 in the ocean.in file. This means it produces one very large history file. I would like to produce multiple history files so my model does not encounter problems when it runs for long periods of time. But if I change the value of NDEFHIS=720 my model crashes as soon as it tries to write to the history file with the following error:
NETCDF_PUT_FVAR_1D - error while writing variable: ocean_time
in input file: /scratch/sap12/New_COAWST/Output_CFSR_2/Med12_his.nc
call from: wrt_his.F
ROMS/TOMS - Output error ............ exit_flag: 3
And no history file is produced at all. I have attached my ocean.in file. Any help on this would be really appreciated.
Many thanks,
Sam
Re: ROMS only runs with NDEFHIS set to zero
Are you really running ROMS 3.0? This has been fixed in newer versions.
Re: ROMS only runs with NDEFHIS set to zero
Yes, but I just changed the DSTART according to the ocean_time, it works. Thanks.kate wrote:Are you really running ROMS 3.0? This has been fixed in newer versions.