Changeset 1604


Ignore:
Timestamp:
11/20/23 16:50:13 (7 months ago)
Author:
falletti
Message:

C-ESM-EP in libIGCM (for S. Senesi), changes for config.card options: Cesmep option doesn't accept <n>Y anymore ; New option CesmepSlicesDuration?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1603 r1604  
    232232       [ X${config_Post_Cesmep} = X ] || [ X${config_Post_Cesmep} = XFALSE ] ) ; then 
    233233    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 
    238235      if ([ ! X${config_Post_SeasonalFrequency} = XNONE ] && [ ! X${config_Post_SeasonalFrequency} = X ] ) ; then 
    239236          config_Post_Cesmep="SE" 
     
    249246  # 
    250247  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 
    251251      if [ X${config_Post_Cesmep} = XSE ] ; then 
    252252          if ([ X${config_Post_SeasonalFrequency} = XNONE ] || [ X${config_Post_SeasonalFrequency} = X ] ) ; then 
     
    268268          fi 
    269269      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" 
    271271      else 
    272272          [ -z $CesmepPeriod ] && CesmepPeriod=0 
     
    290290      if ( [ X${config_Post_CesmepSlices} = XNONE ] || [ X${config_Post_CesmepSlices} = X ] ) ; then 
    291291          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 
    292297      fi 
    293298  fi 
Note: See TracChangeset for help on using the changeset viewer.