PCNST : Determination of number of constituents

andreasb

New Member
Hi,

In a new WACCM/CESM1.0.4 module I create additional constituents (cnst_add), which means that PCNST needs to be increased. At the moment I manually increase that in cam.buildexe.csh. Is that the appropriate way of doing it, or is there a way for CESM to automatically determine PCNST?

Thanks!
Andreas
 

santos

Member
Hi Andreas,

PCNST is determined by CAM's configure script, so there are a few different options:

- If using a personal sandbox or development branch with the code, you can edit CAM's configure script (models/atm/cam/bld/configure) to add your module's contribution to the total number of advected constituents ("$nadv"). This is the "appropriate" place to make the change when developing a new feature that needs to be integrated with CAM's build system.

- If you just want a particular case to run, and you know what value of PCNST you need ahead of time, you can pass the option "-nadv" to configure (via CAM_CONFIG_OPTS in env_configure.xml or env_build.xml). This is the "appropriate" place to make the change when you are doing a one-off test, or otherwise don't want to change the copy of CESM that you're using.

- If you need to see CAM's auto-generated value for PCNST before you add in your own tracers, you can keep doing what you're doing.
 
Back
Top