Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Sun Dec 17, 2017 9:58 am




Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Author Message
 Post subject: netcdf closing error
PostPosted: Wed Nov 20, 2013 10:46 am 
Offline

Joined: Tue Sep 10, 2013 2:00 pm
Posts: 9
Location: GFZ Potsdam
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


Top
 Profile  
Reply with quote  
 Post subject: Re: netcdf closing error
PostPosted: Thu Nov 21, 2013 5:33 pm 
Offline

Joined: Fri Nov 14, 2003 4:57 pm
Posts: 171
Location: UCLA, USA
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: netcdf closing error
PostPosted: Fri Nov 22, 2013 10:03 am 
Offline

Joined: Tue Sep 10, 2013 2:00 pm
Posts: 9
Location: GFZ Potsdam
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group