Ignore:
Timestamp:
01/07/22 11:35:28 (2 years ago)
Author:
acosce
Message:

in IPSLCM5A2CHT configuration :

  • add parameters files need by paleo Experiment
  • Add Addnoise functionality in configuration (see rev[5106] on IPSLCM5A2 configuration)
  • remove .resol file not need
  • add modification in driver for paleo experiment
  • add iom.F90 to allow flexible handling of calendar (see rev[4930] in IPSLCM5A2CHT configuration)
Location:
CONFIG/UNIFORM/v6/IPSLCM5A2CHT.2/GENERAL/DRIVER
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM5A2CHT.2/GENERAL/DRIVER/lmdz.driver

    r6032 r6035  
    279279    ## gcm.def parameters :  
    280280    # Modification of variable iphysiq depending on the physics 
    281     if [ X${LMDZ_Physics} = X"AP" ] ; then 
     281    ISPALEO=${config_UserChoices_ExpType##*/} 
     282 
     283    if [ X${LMDZ_Physics} = X"AP" ] && [ ${ISPALEO} != "paleo" ]; then 
    282284        if [ ${RESOL_ATM_3D} = 96x95x39 ]; then 
    283285            value=10 
  • CONFIG/UNIFORM/v6/IPSLCM5A2CHT.2/GENERAL/DRIVER/oasis.driver

    r6032 r6035  
    2525        esac 
    2626    done 
     27 
     28    # Initialisation required for AddNoise done during one Period 
     29    Test_AddNoise_First_Only=y 
    2730 
    2831    IGCM_debug_PopStack "CPL_Initialize" 
     
    9598    IGCM_comp_modifyXmlFile force iodef.xml using_oasis NONE true 
    9699 
     100    if [ X"${Test_AddNoise_First_Only}" = X"y" ]; then 
     101 
     102    Test_AddNoise_First_Only=n 
     103 
     104    # AddNoise if required but only for one Period 
     105 
     106    # Read ByPass_addnoise_sst option in oasis.card --> apply addnoise for sst in CPL restart file if [ $ByPass_addnoise_sst = y ] 
     107    ByPass_addnoise_sst=${oasis_UserChoices_ByPass_addnoise_sst} 
     108    if [ X"${ByPass_addnoise_sst}" = X"y" ] ; then 
     109 
     110      ByPass_PerturbExe=${oasis_UserChoices_ByPass_PerturbExe} 
     111      ByPass_FileOut=${oasis_UserChoices_ByPass_FileOut} 
     112      ByPass_PerturbVar=${oasis_UserChoices_ByPass_PerturbVar} 
     113      ByPass_PerturbAmp=${oasis_UserChoices_ByPass_PerturbAmp} 
     114 
     115      IGCM_sys_Chmod 644 ${RUN_DIR}/${ByPass_FileOut}.nc 
     116      IGCM_debug_Print 1 "${ByPass_PerturbExe} ${RUN_DIR}/${ByPass_FileOut}.nc ${ByPass_PerturbVar} ${ByPass_PerturbAmp}" 
     117 
     118      ${ByPass_PerturbExe} ${RUN_DIR}/${ByPass_FileOut}.nc ${ByPass_PerturbVar} ${ByPass_PerturbAmp} 
     119      if [ $? -ne 0 ] ; then 
     120        IGCM_debug_Exit "Error with $( basename ${ByPass_PerturbExe} )" 
     121        IGCM_debug_Verif_Exit 
     122      fi 
     123 
     124      echo 
     125      IGCM_debug_Print 1 "ByPass_addnoise_sst : applied addnoise for sst in CPL restart file" 
     126      echo 
     127      ByPass_addnoise_sst=n 
     128      # necessary to reset ByPass in next Period during the same Job (PeriodNb<>1) 
     129      export oasis_UserChoicesByPass_addnoise_sst=n 
     130      IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/oasis.card UserChoices ByPass_addnoise_sst "${ByPass_addnoise_sst}" 
     131    fi 
     132 
     133    fi 
     134 
    97135    IGCM_debug_PopStack "CPL_Update" 
    98136} 
  • CONFIG/UNIFORM/v6/IPSLCM5A2CHT.2/GENERAL/DRIVER/opa9.driver

    r6032 r6035  
    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     )) 
    4145    (( OPA_RDT_SBC    =  OPA_RDT * OPA_NN_FSBC )) 
     46    # nleapy configuration + OPA_NPDT_YEAR 
     47    case ${config_UserChoices_CalendarType} in 
     48        ( leap|gregorian) OPA_NLEAPY=1 
     49                          (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 365     )) ;; 
     50        ( noleap        ) OPA_NLEAPY=0 
     51                          (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 365     )) ;; 
     52        ( 360d          ) OPA_NLEAPY=30 
     53                          (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 360     )) ;; 
     54        ( *             ) OPA_NLEAPY=30 
     55                          (( OPA_NPDT_YEAR  =  OPA_NPDT_DAY * 360     )) ;; 
     56    esac 
    4257  
    4358    # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
     
    145160    fi 
    146161 
    147     # nleapy configuration 
    148     case ${config_UserChoices_CalendarType} in 
    149         ( leap|gregorian) OPA_NLEAPY=1  ;; 
    150         ( noleap        ) OPA_NLEAPY=0  ;; 
    151         ( 360d          ) OPA_NLEAPY=30 ;; 
    152         ( *             ) OPA_NLEAPY=30 ;; 
    153     esac 
    154162 
    155163    if ( [ "${opa9_UserChoices_Reproducibility_after_restart}" = "y" ] ) ; then 
  • CONFIG/UNIFORM/v6/IPSLCM5A2CHT.2/GENERAL/DRIVER/orchidee.driver

    r6032 r6035  
    5555    # Activate creation of river description file only for the first period 
    5656    if [ ${CumulPeriod} -eq 1 ] ; then 
    57         IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_DESC y 
     57        ISPALEO=${config_UserChoices_ExpType##*/} 
     58        if [ "${ISPALEO}" = "paleo" ] ; then # change to y if needed for paleo 
     59            IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_DESC n 
     60        else 
     61            IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_DESC y 
     62        fi 
    5863    else 
    5964        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_DESC n 
Note: See TracChangeset for help on using the changeset viewer.