netcdf closing error

Discussion about tangent linear and adjoint models, variational data assimilation, and other related issues.

Moderators: arango, robertson

Post Reply
Message
Author
jsaynisch

netcdf closing error

#1 Unread post by jsaynisch »

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

User avatar
shchepet
Posts: 188
Joined: Fri Nov 14, 2003 4:57 pm

Re: netcdf closing error

#2 Unread post by shchepet »

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.

jsaynisch

Re: netcdf closing error

#3 Unread post by jsaynisch »

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

Post Reply