Talk:Installing CCSM4
If I wish to set up my own CCSM repository for different compsets, what are the required edits to Macros.tcs, etc.?
The compsets are specified when you are setting up a specific simulation, and are hard coded into the source. If by this you mean that you would like to create your own specific compsets other than those provided by NCAR. Then either: 1) you would create your own CCSM code repository and then edit the file config_compsets.xml in: $CCSM_SRC_DIR/scripts/ccsm_utils/Case.template In this file you would add a compset e.g:
<compset NAME="B_2000_CO2_400ppmv" SHORTNAME="B_CO2400" DESC="All active components, present day" COMP_ATM="cam" COMP_LND="clm" COMP_ICE="cice" COMP_OCN="pop2" COMP_GLC="sglc" CCSM_CCOST="0" CCSM_CO2_PPMV="400.0" CCSM_BGC="CO2A" CAM_CONFIG_OPTS="-phys cam4" CLM_NML_USE_CASE="2000_control" CLM_CO2_TYPE="diagnostic" BUDGETS="TRUE" />
or 2)
Create a file b_2000_co2_400.xml with the following contents above:
<compset NAME="B_2000_CO2_400ppmv" SHORTNAME="B_CO2400" DESC="All active components, present day" COMP_ATM="cam" COMP_LND="clm" COMP_ICE="cice" COMP_OCN="pop2" COMP_GLC="sglc" CCSM_CCOST="0" CCSM_CO2_PPMV="400.0" CCSM_BGC="CO2A" CAM_CONFIG_OPTS="-phys cam4" CLM_NML_USE_CASE="2000_control" CLM_CO2_TYPE="diagnostic" BUDGETS="TRUE" />
and then when you create_newcase, you invoke the following additional argument
create_newcase -compset_file <path>/b_2000_co2_400.xml
where <path> is the pathname where the xml file resides.
Thanks, that's helpful. My original question was aiming at something simpler but it was not clear. I was asking for a run-down on the changes to the files in the .../Machines directory in order to carry out the original port. In the wiki post you mention editing the files but not what you change.
--Paul Kushner 17:45, 14 October 2010 (EDT)
I will attempt to partly answer this question. Right now, it looks like the latest versions of these files are found in
/project/ccsm4_0_current/scripts/ccsm_utils/Machines.
The files to change appear to be
For tcs
- config_machines.xml
- mkbatch.tcs
- Macros.tcs
- env_machopts.tcs
For gpc
- config_machines.xml
- mkbatch.gpc
- Macros.gpc
- env_machopts.gpc
For reference, these files are bundled here for today (2010_10_14) :File:Ccsm files-scinet-2010 10 14.tgz
It would be useful if these files could be updated as necessary as CESM and the scinet system changes. --Paul Kushner 17:45, 14 October 2010 (EDT)