Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Error in writing Restart files

I am trying to runa high resolution CLM . I have been doing it for some time without any trouble and with same resolution but today while running it over an area I got this error and the model aborted before writing teh restart files :
error :


netcdf error from check_ret:restFile_enddef:
NetCDF: One or more variable sizes violate format constraints
ENDRUN: called without a message string

I tried reducing the time of the run and thus the size of the output files but I am getting the same errors.

Can any one please tell me what the problem is , I read about this error in Unidata forums where they said it can be due to netcdf constrains but I have been running this before and never had this problem !!

Raj
 
I have a read few notes on this error but I don't know how to solve this in CLM :

"If you try to convert a file to netCDF and get the following error message:

ncendef: ncid 0: NetCDF: One or more variable sizes violate format
constraints
Then you may have what qualifies as a "large file", and you need to use the "-L" option with ncl_convertnc. "


"If you get the netCDF library error "One or more variable sizes violate format constraints", you are trying to define a variable larger than permitted for the file format variant. This error typically occurs when leaving "define mode" rather than when defining a variable. The error cannot necessarily be determined when a variable is first defined, because the last fixed-size variable is permitted to be larger than other fixed-size variables when there are no record variables. Similarly, the last record variable may be larger than other record variables. This means that subsequently adding a small variable to an existing file may be invalid, because it makes what was previously the last variable now in violation of the format size constraints. For details on the format size constraints, see the Users Guide sections NetCDF Classic Format Limitations and NetCDF 64-bit Offset Format Limitations."


so how to solve this problem in CLM , my grid size is 392*444.

Thanks Raj.
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
You need to make sure that the NetCDF large file format is turned on when you run with large grid sizes.

So make sure ...

outnc_large_files = .true.

is set in your namelist.
 
Top