- Timestamp:
- 01/07/22 11:35:28 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM5A2CHT.2/GENERAL/DRIVER/opa9.driver
r6032 r6035 26 26 supergrep () { grep "^ *$1 *=" $2 | sed -e "s% *\!.*%%" -e "s%^ *$1 *=%%" ; } 27 27 ##--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 29 34 IGCM_debug_Print 1 "namelist_cfg : ${NAMELIST_OPA_CFG}" 30 35 if [ ! -r ${NAMELIST_OPA_CFG} ] ; then … … 38 43 # OPA_NN_FSBC=$( supergrep nn_fsbc namelist_cfg ) 39 44 (( OPA_NPDT_DAY = 86400 / OPA_RDT )) 40 (( OPA_NPDT_YEAR = OPA_NPDT_DAY * 365 ))41 45 (( 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 42 57 43 58 # Period Length In Days between DateBegin and first day of calendar 0001 01 01 … … 145 160 fi 146 161 147 # nleapy configuration148 case ${config_UserChoices_CalendarType} in149 ( leap|gregorian) OPA_NLEAPY=1 ;;150 ( noleap ) OPA_NLEAPY=0 ;;151 ( 360d ) OPA_NLEAPY=30 ;;152 ( * ) OPA_NLEAPY=30 ;;153 esac154 162 155 163 if ( [ "${opa9_UserChoices_Reproducibility_after_restart}" = "y" ] ) ; then
Note: See TracChangeset
for help on using the changeset viewer.