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

Unwanted output .nc files (CESM 2.1.3, user_nl_pop)

AN@WIS

Alexander Novoselsky
New Member
Hi,

After the successful case run we have a number of unwanted ‘nday1’ and ‘nyear1’ output .nc files (like b.e20.BHIST.f19_g17.test.001.pop.h.ecosys.nday1.1850-01-01.nc or b.e20.BHIST.f19_g17.test.001.pop.h.ecosys.nyear1.1850.nc) in the folder …/CESM2/archive/b.e20.BHIST.f19_g17.test.001/ocn/hist/.

We do not need them for our research and tried to get rid of these files. The instructions in the $CASEROOT/user_nml_pop file say:

! 2. DO NOT CHANGE any tavg_nml namelist variables below - copy any of the files
! $SRCROOT/components/pop/input_templates/ocn.base.tavg.csh
! $SRCROOT/components/pop/input_templates/ocn.ecosys.tavg.csh
! $SRCROOT/components/pop/input_templates/ocn.iage.tavg.csh
! $SRCROOT/components/pop/input_templates/ocn.cfc.tavg.csh
! $SRCROOT/components/pop/input_templates/ocn.abio_dic_dic14.tavg.csh
! $SRCROOT/components/pop/input_templates/ocn.ciso.tavg.csh
! $SRCROOT/components/pop/input_templates/ocn.IRF.tavg.csh
! into $CASEROOT/SourceMods/src.pop and edit them there. Invoke preview-namelist
! to see the changes in CaseDocs/pop_in

I copied the ocn.base.tavg.csh and ocn.ecosys.tavg.csh files into $CASEROOT/SourceMods/src.pop and removed the columns with 'nmonth1', 'nday1' and 'once' from these files.
Then preview-namelist was invoked. I saw the changes in the file CaseDocs/pop_in: the section 'tavg_nml' contains only 'nmonth1' stream.
After this, the ./case.submit was run. But the run crashed. The file $CASEROOT/CaseStatus contains the message:

2021-06-09 14:39:53: case.run error
ERROR: Model did not complete - see .../CESM2/scratch/b.e20.BHIST.f19_g17.test.001/run/cpl.log.8048698.pbs.210609-143758

The mentioned file cpl.log.8048698.pbs.210609-143758 does not contain any error message.

I tried to solve the described problem in the following way:
- Delete the ocn.base.tavg.csh and ocn.ecosys.tavg.csh files from $CASEROOT/SourceMods/src.pop
- Write to the user_nl_pop file the values

tavg_freq_opt = 'nmonth'
tavg_freq = 1
tavg_stream_filestrings = 'nmonth1'
tavg_file_freq_opt = 'nmonth'
tavg_file_freq = 1
tavg_start_opt = 'nstep'
tavg_start = 0
tavg_fmt_in = 'nc'
tavg_fmt_out = 'nc'
ltavg_has_offset_date = .false.
tavg_offset_years = 1
tavg_offset_months = 1
tavg_offset_days = 2
ltavg_one_time_header = .false.

Please note: it is the contrary of instructions in the $CASEROOT/user_nml_pop file: “DO NOT CHANGE any tavg_nml namelist variables below”.

- Invoke the preview-namelist. I saw the changes in the file CaseDocs/pop_in: the section 'tavg_nml' contains only 'nmonth1' stream.
- Run the ./case.submit. This time the run was successful.

Is such a non-canonical method acceptable? Does any other approach exist?
We would be thankful for help with this issue.

Regards,
AN
 

Attachments

  • version_info.txt
    6.5 KB · Views: 2
Top