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

co2 cycle and tracer index

Hi,I want to do a test run with CAM6 using the co2 cycle.I used the compset: FHIST_DEV and turned the co2_flag=.true. in the user_ncl_camThen i get the error:"ERROR:  cnst_add: FATAL: advected tracer index greater than pcnst=          33"Isn't the co2_flag supposed to add 4 new tracers? My future plan is to add even more tracers, so how can i tell the model to increase number of advected tracers? Thanks,
Altug
 

eaton

CSEG and Liaisons
In CAM the number of advected constituents is a compile time option, i.e., you can't change it at run time with a namelist option.  To run the CO2 cycle code the option -co2_cycle must be given to configure.  When you do this the namelist variable co2_flag will be set to true by build-namelist.  It is not necessary to set it in user_nl_cam. 
 

nicolas cruz

nicase03
New Member
Hi, I'm using cesm2.2.0 with this configuration, ne30pg3.FHIST.aleph.test100 and have the same problem:
error:"ERROR: cnst_add: FATAL: advected tracer index greater than pcnst= 33"
When I call :
./xmlquery CAM_CPPDEFS
CAM_CPPDEFS: -DPLON=1 -DPLAT=1 -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_ROF=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_IAC=1 -DNUM_COMP_INST_ESP=1 -DCAM -D_WK_GRAD -DNP=4 -DHAVE_F2003_PTR_BND_REMAP -DFVM_TRACERS -D_MPI -DPLEV=32 -DPCNST=33 -DPCOLS=16 -DPSUBCOLS=1 -DN_RAD_CNST=30 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSPMD -DMODAL_AERO -DMODAL_AERO_4MODE -DCLUBB_SGS -DCLUBB_CAM -DNO_LAPACK_ISNAN -DCLUBB_REAL_TYPE=dp

How to know how tracers are using CAM 6 and
how do I change it DPCNST=33 for its real value
I appreciate any help
 

peverley

Courtney Peverley
Moderator
Staff member
H Nicolas,

Are you trying to add the CO2 cycle tracers? If so, try running:

./xmlchange -append CAM_CONFIG_OPTS="-co2_cycle"

And then do a clean rebuild
./case.setup --reset
./case.build --clean-all
./case.build
./case.submit
 
Top