Changeset 1604
- Timestamp:
- 11/20/23 16:50:13 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r1603 r1604 232 232 [ X${config_Post_Cesmep} = X ] || [ X${config_Post_Cesmep} = XFALSE ] ) ; then 233 233 config_Post_Cesmep=FALSE 234 elif [ X${config_Post_Cesmep} = XTRUE ] || [[ X${config_Post_Cesmep} =~ X[1-9][0-9]?Y ]] ; then 235 if [[ X${config_Post_Cesmep} =~ X[1-9][0-9]?Y ]] ; then 236 CesmepPeriod=${config_Post_Cesmep%Y} 237 fi 234 elif [ X${config_Post_Cesmep} = XTRUE ] ; then 238 235 if ([ ! X${config_Post_SeasonalFrequency} = XNONE ] && [ ! X${config_Post_SeasonalFrequency} = X ] ) ; then 239 236 config_Post_Cesmep="SE" … … 249 246 # 250 247 if [ X${config_Post_Cesmep} != XFALSE ] ; then 248 if ( [ X${config_Post_CesmepPeriod} != X${NULL_STR} ] && [ X${config_Post_CesmepPeriod} != X ] ) ; then 249 CesmepPeriod=${config_Post_CesmepPeriod%Y} 250 fi 251 251 if [ X${config_Post_Cesmep} = XSE ] ; then 252 252 if ([ X${config_Post_SeasonalFrequency} = XNONE ] || [ X${config_Post_SeasonalFrequency} = X ] ) ; then … … 268 268 fi 269 269 elif [ X${config_Post_Cesmep} != XAtEnd ] ; then 270 IGCM_debug_Exit "config.card's Post section's value for Cesmep (${config_Post_Cesmep}) is invalid; use SE, TS, Pack, AtEnd , TRUE or <n>Y"270 IGCM_debug_Exit "config.card's Post section's value for Cesmep (${config_Post_Cesmep}) is invalid; use SE, TS, Pack, AtEnd or TRUE" 271 271 else 272 272 [ -z $CesmepPeriod ] && CesmepPeriod=0 … … 290 290 if ( [ X${config_Post_CesmepSlices} = XNONE ] || [ X${config_Post_CesmepSlices} = X ] ) ; then 291 291 config_Post_CesmepSlices=8 292 fi 293 if ( [ X${config_Post_CesmepSlicesDuration} != X${NULL_STR} ] && [ X${config_Post_CesmepSlicesDuration} != X ] ) ; then 294 CesmepSlicesDuration=${config_Post_CesmepSlicesDuration%Y} 295 else 296 CesmepSlicesDuration=$CesmepPeriod 292 297 fi 293 298 fi
Note: See TracChangeset
for help on using the changeset viewer.