Ignore:
Timestamp:
07/05/21 16:30:50 (3 years ago)
Author:
snguyen
Message:

Modified Makefile to add configuration PALEOIPSLCM5A2-VLR while retaining IPSLCM5A2-VLR as default configuration for compilation. Moved NEMO SOURCES of IPSLCM5A2-VLR to SOURCES/NEMO/STANDARD and created SOURCES/NEMO/PALEO for PALEOIPSLCM5A2-VLR configuration. Created paleolmdz in Makefile to compile LMDZ sources in SOURCES/LMDZ/PALEO. Added experiments IPSLCM/paleo and LMDZOR/paleo. Added file_def_nemo-lim2_paleo.xml file_def_histmth_lmdz_paleo.xml file_def_nemo-opa_paleo.xml file_def_nemo-pisces_rivers_paleo.xml file_def_nemo-pisces_paleo.xml file_def_orchidee_paleo.xml namelist_ORCA2_cfg_paleo namelist_pisces_ORCA2_cfg_paleo to GENERAL/PARAM for paleo configurations. Set day_step=720 in GENERAL/PARAM/gcm.def_96x95 for paleo configurations. Modified GENERAL/DRIVER/opa9.driver to use namelist_ORCA2_cfg_paleo for paleo configurations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM5A2/GENERAL/DRIVER/opa9.driver

    r4873 r5879  
    2626    supergrep () { grep "^ *$1 *=" $2 | sed -e "s% *\!.*%%" -e "s%^ *$1 *=%%" ; } 
    2727    ##--Variables used by OPA -- 
    28     NAMELIST_OPA_CFG=${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}_cfg 
     28    ISPALEO=${config_UserChoices_ExpType##*/} 
     29    if [ "${ISPALEO}" = "paleo" ] ; then 
     30        NAMELIST_OPA_CFG=${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}_cfg_paleo 
     31    else 
     32        NAMELIST_OPA_CFG=${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}_cfg 
     33    fi 
    2934    IGCM_debug_Print 1 "namelist_cfg : ${NAMELIST_OPA_CFG}" 
    3035    if [ ! -r ${NAMELIST_OPA_CFG} ] ; then 
     
    3843    # OPA_NN_FSBC=$(   supergrep nn_fsbc       namelist_cfg ) 
    3944    (( OPA_NPDT_DAY   =  86400 / OPA_RDT        )) 
    40     (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 365     )) 
     45    #(( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 365     )) 
    4146    (( OPA_RDT_SBC    =  OPA_RDT * OPA_NN_FSBC )) 
     47    # nleapy configuration 
     48    case ${config_UserChoices_CalendarType} in 
     49        ( leap|gregorian) OPA_NLEAPY=1 
     50                          (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 365     )) ;; 
     51        ( noleap        ) OPA_NLEAPY=0 
     52                          (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 365     )) ;; 
     53        ( 360d          ) OPA_NLEAPY=30 
     54                          (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 360     )) ;; 
     55        ( *             ) OPA_NLEAPY=30 
     56                          (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 360     )) ;; 
     57    esac 
    4258  
    4359    # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
     
    144160    fi 
    145161 
    146     # nleapy configuration 
    147     case ${config_UserChoices_CalendarType} in 
    148         ( leap|gregorian) OPA_NLEAPY=1  ;; 
    149         ( noleap        ) OPA_NLEAPY=0  ;; 
    150         ( 360d          ) OPA_NLEAPY=30 ;; 
    151         ( *             ) OPA_NLEAPY=30 ;; 
    152     esac 
    153  
    154162    if ( [ "${opa9_UserChoices_Reproducibility_after_restart}" = "y" ] ) ; then 
    155163        ##-- choose the right restart file 
Note: See TracChangeset for help on using the changeset viewer.