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

cesm xml env variables

There are many variables in cesm xml files, I wonder how could I know which fortran routine get the value of the specfic variable.
Take the RESUBMIT variable in env_run.xml for example, how could I search for the fortran routine which reads the value of RESUBMIT .
(I have already tried to grep RESUBMIT in the source file, but it failed and I got no result.)
 

santos

Member
The env xml files are not used directly by the Fortran code, but by the scripts. For example, RESUBMIT is only used by the "run" script in the case directory, and is not relevant to anything that the Fortran code does.Some of the variables, such as CCSM_CO2_PPMV, are passed to the component build-namelist scripts by the scripts in Buildconf, and thus eventually affect the namelists of individual components. But most of the XML entries are used only by the scripts, and don't correspond to anything that the Fortran code handles directly.
 
Top