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

Setting'CAM_CONFIG_OPTS -val '-phys cam5 -chem trop_mozart_mam3'' and got the run error'Cannot specify both bndtvghg and flbc_file'

Hi everybody, I came up with a problem with CESM1_2_1. I'm running F20C5TR with env_build.xml setting './xmlchange -file env_build.xml -id CAM_CONFIG_OPTS -val '-phys cam5 -chem trop_mozart_mam3''. And I got the run error message '(shr_sys_abort) ERROR: chem_surfvals_readnl: Cannot specify both bndtvghg and flbc_file'.
How can I solve this problem? Any advice would be appreciated.
 

mmills

CSEG and Liaisons
Staff member
Your xmlchange changes the chemistry so that you are now running CAM-chem instead of CAM. CAM uses single values for greenhouse gases for the whole atmosphere. These can be set in the namelist with bndtvghg, which is a file with time-varying greenhouse gas values. CAM-chem uses a lower boundary condition file (flbc_file), and advects greenhouse gases in the atmosphere. To remove bndtvghg from your namelist, try putting this in the user_nl_cam file in your case directory:

bndtvghg = ''
 
Your xmlchange changes the chemistry so that you are now running CAM-chem instead of CAM. CAM uses single values for greenhouse gases for the whole atmosphere. These can be set in the namelist with bndtvghg, which is a file with time-varying greenhouse gas values. CAM-chem uses a lower boundary condition file (flbc_file), and advects greenhouse gases in the atmosphere. To remove bndtvghg from your namelist, try putting this in the user_nl_cam file in your case directory:

bndtvghg = ''
Hi mmills!
I have set 'bndtvghg = '' ' in the usr_nl_cam and I got another run error massage in the atm.log.191221-000151:
PHYS_GRID_INIT: Using PCOLS= 16 phys_loadbalance= 2
phys_twin_algorithm= 1 phys_alltoall= -1
chunks_per_thread= 1
(shr_sys_abort) ERROR: (GETFIL): local filename has zero length

(shr_sys_abort) WARNING: calling shr_mpi_abort() and stopping
I look back to another atm.log which belongs to the case that run sucucessfully, and it says these in the same place:
PHYS_GRID_INIT: Using PCOLS= 16 phys_loadbalance= 2
phys_twin_algorithm= 1 phys_alltoall= -1
chunks_per_thread= 1
(GETFIL): attempting to find local file ghg_hist_1765-2005_c091218.nc
(GETFIL): using
/nuist/scratch/anjunlin/anjunlin/FC5/atm/cam/ggas/ghg_hist_1765-2005_c091218.nc

GHG_RAMP_READ: reading ramped greenhouse gas surface data from file
It seems like the model still wants to read the file set by 'bndtvghg' but got nothing so the case went wrong.
Is there any solution?
 

tilmes

Member
Hi Alison,
it seems like you try to run a chemistry configuration starting out from a CAM compset that does not include tropospheric chemistry. This way, you may miss important setting and namelist changes that are needed. The easier way would be to start from a tropospheric chemistry compset, for example F_2000_MOZMAM_CN (with full tropospheric chemistry) or F2000_STRATMAM3_CN (with full tropospheric and stratospheric chemistry), where the chemistry setting are already included.
More information about scientifically supported simulations can be also found here:
Simone
 
Top