While computing the normalization factors I get the following error (see below). The normalization factors are normally generated and written to netcdf files (as far as I can see). But there seems to be a problem with the adjoint netcdf file? Why does ROMS want to write this anyway in case of the normalization? Or can I just ignore this error?
Here comes the error message:
AD_DEF_HIS - creating adjoint file: za_adj.nc
AD_WRT_HIS - wrote adjoint fields (Index=1,1) into time record = 0000001
NETCDF_CLOSE - error during closing of file, ncid = 0
file:
call from: close_out, close_io.F
ROMS/TOMS - Output NetCDF summary for Grid 01:
number of time records written in ADJOINT file = 00000001
ROMS/TOMS - Output error ............ exit_flag: 3
ERROR: Abnormal termination: NetCDF OUTPUT.
REASON: NetCDF: Not a valid ID
Thank you,
Jan
netcdf closing error
Re: netcdf closing error
Pay attention to ncid = 0 in
NETCDF_CLOSE - error during closing of file, ncid = 0
most likely you are trying to close a file which was not opened
at the first place.
NETCDF_CLOSE - error during closing of file, ncid = 0
most likely you are trying to close a file which was not opened
at the first place.
Re: netcdf closing error
Just to let you know, I solved the problem.
I had to set all the file-name variables like ITLNAME, CLMNAME and so on. The files itself are not needed. Note, the error does not affect the generation of the normalization factors. I just don't like errors and the tendency of ROMS to need input (sometimes even files) that are not connected to the intended study is a bit irritating for me but I start to get used to it. Don't get me wrong, this is a great model and I very much appreciate the tremendous amount of work it contains!
Greetings, Jan
I had to set all the file-name variables like ITLNAME, CLMNAME and so on. The files itself are not needed. Note, the error does not affect the generation of the normalization factors. I just don't like errors and the tendency of ROMS to need input (sometimes even files) that are not connected to the intended study is a bit irritating for me but I start to get used to it. Don't get me wrong, this is a great model and I very much appreciate the tremendous amount of work it contains!
Greetings, Jan