Ignore:
Timestamp:
12/15/10 17:15:45 (14 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/EXP00/COMP
Files:
2 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} 
Note: See TracChangeset for help on using the changeset viewer.