Changeset 1220


Ignore:
Timestamp:
12/15/10 17:15:45 (13 years ago)
Author:
lfairhead
Message:

Modifications needed to take advantage of the split in physiq.def in LMDZ.
The old physiq.def is split in 2: a shorter physiq.def that only includes
parameters and constants needed by the parametrizations and a config.def that
includes information related to the configuration one wishes to run (e.g. orbital
parameters, gaz constants, aerosols, etc...). The output.def is also taken into account

Warning: work in progress. Probably still needs some testing. Tested on brodie for the moment

Location:
CONFIG/IPSLCM/IPSLCM5B
Files:
12 added
3 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5B/EXP00/COMP/lmdz.card

    r1183 r1220  
    33 
    44[UserChoices] 
     5# Physics package to use 
     6LMDZ_Physics=NPv2.0 
     7#LMDZ_Physics=AP 
     8 
    59ByPass_hgardfou_teta=n 
    610ByPass_hgardfou_mats=n 
     
    5155 
    5256[ParametersFiles] 
    53 List=   (${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}, physiq.def), \ 
    54         (${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D},    gcm.def),    \ 
    55         (${SUBMIT_DIR}/PARAM/cosp_input_nl.txt,                .),    \ 
    56         (${SUBMIT_DIR}/PARAM/cosp_output_nl.txt,               .),    \ 
    57         (${SUBMIT_DIR}/PARAM/run.def, .), \ 
     57List=   (${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}_${LMDZ_Physics}, physiq.def), \ 
     58        (${SUBMIT_DIR}/PARAM/config.def,                                 config.def), \ 
     59        (${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D},                       gcm.def), \ 
     60        (${SUBMIT_DIR}/PARAM/cosp_input_nl.txt,                                   .), \ 
     61        (${SUBMIT_DIR}/PARAM/cosp_output_nl.txt,                                  .), \ 
     62        (${SUBMIT_DIR}/PARAM/output.def,                                          .), \ 
     63        (${SUBMIT_DIR}/PARAM/run.def,                                             .), \ 
    5864        (${SUBMIT_DIR}/PARAM/traceur.def, .) 
    5965 
  • CONFIG/IPSLCM/IPSLCM5B/EXP00/COMP/lmdz.driver

    r1172 r1220  
    1414} 
    1515 
     16function LMDZ_string_sed 
     17{ 
     18    IGCM_debug_PushStack "LMDZ_string_sed" 
     19 
     20    sed -e "s/${2}/${3}/" ${1} > ${1}.tmp 
     21    RET=$? 
     22    echo "LMDZ_sed : ${1} ${2} ${3}" 
     23    \mv ${1}.tmp ${1} 
     24 
     25    IGCM_debug_PopStack "LMDZ_string_sed" 
     26    return $RET 
     27} 
     28 
    1629function ATM_Initialize 
    1730{ 
    1831    IGCM_debug_PushStack "ATM_Initialize" 
    1932 
     33    set -vx 
     34 
    2035    RESOL_ATM=$( echo $RESOL | awk "-Fx" '{print $2}' | awk "-F-" '{print $1}') 
    2136 
     
    2338 
    2439    RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' ) 
    25  
     40  
    2641    ##-- Calendar type for LMDZ 
    2742    case ${config_UserChoices_CalendarType} in 
     
    5772    done 
    5873 
     74    ## Read LMDZPhysics option in lmdz.card  
     75    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Physics 
     76    LMDZ_Physics=${lmdz_UserChoices_LMDZ_Physics} 
     77 
    5978    ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
    6079    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_NbPeriod_adjust 
     
    91110    case ${config_UserChoices_PeriodLength} in 
    92111        *Y|*y)  
    93                LMDZ_ecrit_mth=30.  
     112#               LMDZ_ecrit_mth=30.  
     113               LMDZ_ecrit_mth=1mth  
    94114               LMDZ_ecrit_ISCCP=30. 
    95115               LMDZ_periodav=30. 
     
    100120               ;; 
    101121        *) 
    102                LMDZ_ecrit_mth=${PeriodLengthInDays}. 
     122               LMDZ_ecrit_mth="${PeriodLengthInDays}""day" 
    103123               LMDZ_ecrit_ISCCP=${PeriodLengthInDays}. 
    104124               LMDZ_periodav=${PeriodLengthInDays}. 
     
    140160    LMDZ_sed physiq.def OK_mensuel  ${OK_mensuel} 
    141161    LMDZ_sed physiq.def ok_hf       ${ok_hf} 
    142     LMDZ_sed physiq.def ecrit_mth   ${LMDZ_ecrit_mth} 
     162#    LMDZ_sed physiq.def ecrit_mth   ${LMDZ_ecrit_mth} 
     163    LMDZ_string_sed config.def _ecrit-mth_   ${LMDZ_ecrit_mth} 
    143164    LMDZ_sed physiq.def ecrit_ISCCP ${LMDZ_ecrit_ISCCP} 
    144165    LMDZ_sed physiq.def ok_cosp     ${LMDZ_COSP_OK} 
  • CONFIG/IPSLCM/IPSLCM5B/EXP00/PARAM/run.def

    r907 r1220  
    22# 
    33INCLUDEDEF=physiq.def 
     4INCLUDEDEF=config.def 
    45INCLUDEDEF=gcm.def 
    56INCLUDEDEF=orchidee.def 
     7INCLUDEDEF=output.def 
    68## Type de calendrier utilise 
    79## valeur possible: earth_360d (defaut), earth_365d, earth_366d 
  • CONFIG/IPSLCM/IPSLCM5B/EXP00/config.card

    r1049 r1220  
    99[UserChoices] 
    1010#============================ 
    11 JobName=EXP00 
     11JobName=N05B 
    1212#----- Short Name of Experiment 
    1313ExperimentName=pdControl 
    1414#----- DEVT TEST PROD 
    1515SpaceName=DEVT 
    16 LongName="IPSLCM5A CMIP5 DEVT phase pdControl example with limited outputs" 
    17 TagName=IPSLCM5A 
     16LongName="IPSLCM5B CMIP5 DEVT phase pdControl example with limited outputs" 
     17TagName=IPSLCM5B 
    1818#============================ 
    1919#-- leap, noleap, 360d 
     
    2222#-- "YYYY-MM-DD" 
    2323DateBegin=2000-01-01 
    24 DateEnd=2000-12-31 
     24DateEnd=2000-02-28 
    2525#============================ 
    2626#-- 1Y, 1M, 5D, 1D Period Length of one trunk of simulation 
     
    5454#D- If you want to restart all components from the same simulation, 
    5555#D-      put OveRule flag to 'y' and set the next 3 parameters 
    56 OverRule=n 
     56OverRule=y 
    5757#D- Last day of the experience used as restart for all components 
    58 RestartDate=1999-12-31 
     58RestartDate=1829-12-31 
    5959#D- Define restart simulation name for all components 
    60 RestartJobName=EXP00 
     60RestartJobName=CNPF16ctrl 
    6161#D- Path Server Group Login 
    62 RestartPath=${ARCHIVE}/IGCM_OUT/IPSLCM5A/DEVT/pdControl 
     62RestartPath=${ARCHIVE}/IGCM_OUT/IPSLCM5A/DEVT/piControl/ 
    6363 
    6464#======================================================================== 
     
    167167ATM= (lmdz, LMDZ4-dev) 
    168168SRF= (orchidee, ORCHIDEE_1_9_5) 
    169 SBG= (stomate, ORCHIDEE_1_9_5) 
     169#SBG= (stomate, ORCHIDEE_1_9_5) 
    170170OCE= (opa9, CMIP5_IPSL) 
    171171ICE= (lim2, CMIP5_IPSL) 
  • CONFIG/IPSLCM/IPSLCM5B/historical/COMP/lmdz.card

    r1183 r1220  
    33 
    44[UserChoices] 
     5# Physics package to use 
     6LMDZ_Physics=AP 
    57ByPass_hgardfou_teta=n 
    68ByPass_hgardfou_mats=n 
     
    5658 
    5759[ParametersFiles] 
    58 List=   (${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}, physiq.def), \ 
     60List=   (${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}_${LMDZ_Physics}, physiq.def), \ 
     61        (${SUBMIT_DIR}/PARAM/config.def_L${RESOL_ATM_Z}_${LMDZ_Physics}, config.def), \ 
    5962        (${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D},    gcm.def),    \ 
    6063        (${SUBMIT_DIR}/PARAM/cosp_input_nl.txt,                .),    \ 
  • CONFIG/IPSLCM/IPSLCM5B/historical/COMP/lmdz.driver

    r1172 r1220  
    5959        esac 
    6060    done 
     61 
     62     ## Read LMDZPhysics option in lmdz.card  
     63     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Physics 
     64     LMDZ_Physics=${lmdz_UserChoices_LMDZ_Physics} 
    6165 
    6266    ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
  • CONFIG/IPSLCM/IPSLCM5B/historical/PARAM/run.def

    r907 r1220  
    22# 
    33INCLUDEDEF=physiq.def 
     4INCLUDEDEF=config.def 
    45INCLUDEDEF=gcm.def 
    56INCLUDEDEF=orchidee.def 
     7INCLUDEDEF=output.def 
    68## Type de calendrier utilise 
    79## valeur possible: earth_360d (defaut), earth_365d, earth_366d 
  • CONFIG/IPSLCM/IPSLCM5B/historical/config.card

    r1171 r1220  
    1313ExperimentName=historical 
    1414#----- DEVT TEST PROD 
    15 SpaceName=DEVT 
    16 LongName="IPSLCM5A CMIP5 DEVT phase historical example with large outputs" 
    17 TagName=IPSLCM5A 
     15SpaceName=PROD 
     16LongName="IPSLCM5B CMIP5 DEVT phase historical example with large outputs" 
     17TagName=IPSLCM5B 
    1818#============================ 
    1919#-- leap, noleap, 360d 
  • CONFIG/IPSLCM/IPSLCM5B/piControl/COMP/lmdz.card

    r1183 r1220  
    33 
    44[UserChoices] 
     5# Physics package to use 
     6LMDZ_Physics=AP 
    57ByPass_hgardfou_teta=n 
    68ByPass_hgardfou_mats=n 
     
    5052 
    5153[ParametersFiles] 
    52 List=   (${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}, physiq.def), \ 
     54List=   (${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}_${LMDZ_Physics}, physiq.def), \ 
     55+       (${SUBMIT_DIR}/PARAM/config.def_L${RESOL_ATM_Z}_${LMDZ_Physics}, config.def), \ 
    5356        (${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D},    gcm.def),    \ 
    5457        (${SUBMIT_DIR}/PARAM/cosp_input_nl.txt,                .),    \ 
  • CONFIG/IPSLCM/IPSLCM5B/piControl/COMP/lmdz.driver

    r1172 r1220  
    5656        esac 
    5757    done 
     58 
     59    ## Read LMDZPhysics option in lmdz.card  
     60    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Physics 
     61    LMDZ_Physics=${lmdz_UserChoices_LMDZ_Physics} 
    5862 
    5963    ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
  • CONFIG/IPSLCM/IPSLCM5B/piControl/PARAM/run.def

    r907 r1220  
    22# 
    33INCLUDEDEF=physiq.def 
     4INCLUDEDEF=config.def 
    45INCLUDEDEF=gcm.def 
    56INCLUDEDEF=orchidee.def 
     7INCLUDEDEF=output.def 
    68## Type de calendrier utilise 
    79## valeur possible: earth_360d (defaut), earth_365d, earth_366d 
  • CONFIG/IPSLCM/IPSLCM5B/piControl/config.card

    r1049 r1220  
    1313ExperimentName=piControl 
    1414#----- DEVT TEST PROD 
    15 SpaceName=DEVT 
    16 LongName="IPSLCM5A CMIP5 DEVT phase piControl example with large outputs" 
    17 TagName=IPSLCM5A 
     15SpaceName=PROD 
     16LongName="IPSLCM5B CMIP5 DEVT phase piControl example with large outputs" 
     17TagName=IPSLCM5B 
    1818#============================ 
    1919#-- leap, noleap, 360d 
Note: See TracChangeset for help on using the changeset viewer.