Changeset 3193 for CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver
- Timestamp:
- 03/31/17 11:13:41 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver
r3121 r3193 107 107 OPA_NSTOCK="${OPA_NITEND}" 108 108 109 ##-- Restart configuration 110 if ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_OCE_Restart}" = "n" ] ) ; then 111 OPA_LRSTAR=.FALSE. 112 OPA_NRSTDT=0 113 #echo "NO OPA RESTART" 109 110 ##-- Additionnal Restart Option to force reproducibility ; force kt to kt red in restart file 111 ## ${opa9_UserChoices_Reproducibility_after_restart} 112 113 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/opa9.card UserChoices Reproducibility_after_restart 114 115 ##-- Restart configuration 116 if ( [ "${opa9_UserChoices_Reproducibility_after_restart}" = "y" ] ) ; then 117 OPA_LRSTAR=.TRUE. 118 OPA_NRSTDT=2 119 #echo "OPA RESTART" 120 IGCM_debug_Print 1 'WARNING : dangerous option' 121 IGCM_debug_Print 1 'Reproducibility_after_Restart forced ie kt forced to kt red in restart file : ' ${opa9_UserChoices_Reproducibility_after_restart} 122 elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_OCE_Restart}" = "n" ] ) ; then 123 OPA_LRSTAR=.FALSE. 124 OPA_NRSTDT=0 125 #echo "NO OPA RESTART" 114 126 elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_OCE_Restart}" = "y" ] ) ; then 115 116 117 127 OPA_LRSTAR=.TRUE. 128 OPA_NRSTDT=0 129 #echo "OPA RESTART" 118 130 else 119 OPA_LRSTAR=.TRUE. 120 OPA_NRSTDT=2 121 #echo "OPA RESTART" 122 fi 131 OPA_LRSTAR=.TRUE. 132 OPA_NRSTDT=2 133 #echo "OPA RESTART" 134 fi 135 123 136 124 137 ##-- Meshmask option. Forced only once. … … 138 151 ( * ) OPA_NLEAPY=30 ;; 139 152 esac 153 154 if ( [ "${opa9_UserChoices_Reproducibility_after_restart}" = "y" ] ) ; then 155 NEMO_KT_FROM_RESTART=$(ncdump -v kt restartopa_0000.nc|grep 'kt ='|awk '{print $3}' ) 156 (( NEMO_NIT000 = NEMO_KT_FROM_RESTART + 1 )) 157 (( NEMO_NITEND = NEMO_KT_FROM_RESTART + OPA_NITEND - OPA_NIT000 + 1 )) 158 IGCM_debug_Print 1 "NEMO_NIT000 (from Restart) : ${NEMO_NIT000}" 159 IGCM_debug_Print 1 "NEMO_NITEND (from Restart + ... ) : ${NEMO_NITEND}" 160 ##-- We force one restart file at the end of the trunk 161 OPA_NSTOCK="${NEMO_NITEND}" 162 OPA_NIT000="${NEMO_NIT000}" 163 OPA_NITEND="${NEMO_NITEND}" 164 fi 140 165 141 166 typeset -r PRECIS=8
Note: See TracChangeset
for help on using the changeset viewer.