Problem in running cesm2 with user-defined grid

thakur.abubakar

Abu Bakar Siddiqui Thakur
Member
I have been trying to set up a new custom grid on CESM for some aquaplanet simulations. In this regard, I have set up the grid with guidance from Dr. Sacks (this thread). Although the grid appears in ./query_config --grids, and I can create cases using this resolution, the problem starts here.

I am unable to build a case with the compset I intend to run the aquaplanet simulations on, namely 2000_CAM60_SLND_SICE_DOCN%AQP3_SROF_SGLC_SWAV. The following is generated on build.

casabu@login3:/mnt/lustre/cas2/casabu/Abu/cesm21/cases/test1_2x20> ./case.build
Building case in directory /mnt/lustre/cas2/casabu/Abu/cesm21/cases/test1_2x20
sharedlib_only is False
model_only is False
Generating component namelists as part of build
Creating component namelists
Calling /mnt/lustre/cas2/casabu/Abu/cesm21/model/components/cam//cime_config/buildnml
...calling cam buildcpp to set build time options
ERROR: Command: '/mnt/lustre/cas2/casabu/Abu/cesm21/model/components/cam/bld/configure -s -fc_type intel -ccsm_seq -dyn fv -hgrid 2x20 -usr_src /mnt/lustre/cas2/casabu/Abu/cesm21/cases/test1_2x20/SourceMods/src.cam -spmd -nosmp -ocn docn -phys cam6 -aquaplanet' failed with error 'set_horiz_grid: no match for dycore fv and hgrid 2x20' from dir '/mnt/lustre/cas2/casabu/Abu/cesm21/cases/test1_2x20/Buildconf/camconf'


I would like to mention here that I have been using this compset quite extensively and it has worked perfectly with f19_f19_mg17. I have attached the config_grids.xml file from the directory $CIMEROOT/config/cesm/. Guidance/ assistance in resolving this issue will be greatly appreciated.
 

Attachments

fischer

CSEG and Liaisons
Staff member
It looks like you need to add your 2x20 grid to components/cam/bld/config_files/horiz_grid.xml. You can use the 10x15 grid as a template.

Chris
 

thakur.abubakar

Abu Bakar Siddiqui Thakur
Member
Thank you for your response. After incorporating the grid definition, I'm getting the following error on build.

casabu@login2:/mnt/lustre/cas2/casabu/Abu/cesm21/cases/test2x20> ./case.build
Building case in directory /mnt/lustre/cas2/casabu/Abu/cesm21/cases/test2x20
sharedlib_only is False
model_only is False
Generating component namelists as part of build
Creating component namelists
Calling /mnt/lustre/cas2/casabu/Abu/cesm21/model/components/cam//cime_config/buildnml
...calling cam buildcpp to set build time options
ERROR: Command /mnt/lustre/cas2/casabu/Abu/cesm21/model/components/cam/bld/build-namelist -ntasks 240 -csmdata /mnt/lustre/cas2/casabu/Abu/cesm21/cesm_input -infile /mnt/lustre/cas2/casabu/Abu/cesm21/cases/test2x20/Buildconf/camconf/namelist -ignore_ic_year -use_case aquaplanet_cam6 -inputdata /mnt/lustre/cas2/casabu/Abu/cesm21/cases/test2x20/Buildconf/cam.input_data_list -namelist " &atmexp /" failed rc=255
out=CAM build-namelist - ERROR: No default value found for ncdata
user defined attributes:
key=ic_md val=00010101
err=Died at /mnt/lustre/cas2/casabu/Abu/cesm21/model/components/cam/bld/build-namelist line 4054


Following John's advice, here is the diff between the atm_in files for the two resolutions.

7c7
< seasalt_emis_scale = 1.00D0
---
> seasalt_emis_scale = 1.10D0
19c19
< ncdata = '/mnt/lustre/cas2/casabu/Abu/cesm21/cesm_input/atm/cam/inic/fv/aqua_0000-01-01_10x15_L32_c170103.nc'
---
> ncdata = '/mnt/lustre/cas2/casabu/Abu/cesm21/cesm_input/atm/cam/inic/fv/aqua_0006-01-01_1.9x2.5_L32_c161020.nc'
96c96
< clubb_gamma_coef = 0.308
---
> clubb_gamma_coef = 0.280
148c148
< micro_mg_dcs = 500.D-6
---
> micro_mg_dcs = 200.D-6
255c255
< npr_yz = 6,8,8,6
---
> npr_yz = 30,8,8,30


I think I can specify default values specific to the new grid in cam/bld/namelist_files/namelist_defaults_cam.xml. However, is there any functionality to generate the ncdata (highlighted above) file?
 
Back
Top