Talk:Installing CCSM4

From oldwiki.scinet.utoronto.ca
Jump to navigation Jump to search

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 summary of the changes to the files in the .../Machines directory in order to carry out the original port to the scinet systems, so someone could repeat these steps at a future date. In the wiki post you mention editing the files but not how the files should be edited. --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

  1. config_machines.xml
  2. mkbatch.tcs
  3. Macros.tcs
  4. env_machopts.tcs

For gpc

  1. config_machines.xml
  2. mkbatch.gpc
  3. Macros.gpc
  4. env_machopts.gpc

For reference, these files are bundled here; these are the files found in ccsm_4_0_current 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)