Changeset 5879 for CONFIG/UNIFORM/v6/IPSLCM5A2/GENERAL/DRIVER/opa9.driver
- Timestamp:
- 07/05/21 16:30:50 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM5A2/GENERAL/DRIVER/opa9.driver
r4873 r5879 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 ))45 #(( OPA_NPDT_YEAR = OPA_NPDT_DAY * 365 )) 41 46 (( 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 42 58 43 59 # Period Length In Days between DateBegin and first day of calendar 0001 01 01 … … 144 160 fi 145 161 146 # nleapy configuration147 case ${config_UserChoices_CalendarType} in148 ( leap|gregorian) OPA_NLEAPY=1 ;;149 ( noleap ) OPA_NLEAPY=0 ;;150 ( 360d ) OPA_NLEAPY=30 ;;151 ( * ) OPA_NLEAPY=30 ;;152 esac153 154 162 if ( [ "${opa9_UserChoices_Reproducibility_after_restart}" = "y" ] ) ; then 155 163 ##-- choose the right restart file
Note: See TracChangeset
for help on using the changeset viewer.