Difference between revisions of "Talk:Installing CCSM4"

From oldwiki.scinet.utoronto.ca
Jump to navigation Jump to search
Line 4: Line 4:
 
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.
 
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:
 
Then either:
1) you would create your own CCSM code repository and then edit the file (in:
+
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
 
$CCSM_SRC_DIR/scripts/ccsm_utils/Case.template
 
In this file you would add a compset e.g:
 
In this file you would add a compset e.g:

Revision as of 16:36, 14 October 2010

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.