Ignore:
Timestamp:
09/19/22 15:54:06 (19 months ago)
Author:
ssenesi
Message:

Cesmep : fix case AtEnd?

Location:
branches/libIGCM_CESMEP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_CESMEP/libIGCM_config/libIGCM_config.ksh

    r1560 r1561  
    180180    config_Post_MetricsPCMDI=FALSE 
    181181  fi 
    182  
    183182  #==================================================== 
    184183  # Cesmep : apply default value FALSE if not defined, and if TRUE 
     
    199198      else 
    200199          # This covers case SpaceName=TEST with no SE nor TS (nor Pack) 
    201           config_Post_Cesmep="AtEnd" 
     200          config_Post_Cesmep=AtEnd 
    202201      fi 
    203202  fi 
    204203  # 
    205   if ([ X${config_Post_Cesmep} = XSE ]) ; then 
     204  if [ X${config_Post_Cesmep} = XSE ] ; then 
    206205      if ([ X${config_Post_SeasonalFrequency} = XNONE ] || [ X${config_Post_SeasonalFrequency} = X ] ) ; then 
    207206          IGCM_debug_Exit "Cannot use SE for Cesmep : SE post-processing is not active" 
     
    209208          [ -z $CesmepPeriod ] && CesmepPeriod=X${config_Post_SeasonalFrequency%Y} 
    210209      fi 
    211   elif ([ X${config_Post_Cesmep} = XTS ]) ; then 
     210  elif [ X${config_Post_Cesmep} = XTS ] ; then 
    212211      if ([ X${config_Post_TimeSeriesFrequency} = XNONE ] || [ X${config_Post_TimeSeriesFrequency} = X ] ) ; then 
    213212          IGCM_debug_Exit "Cannot use TS for Cesmep : TS post-processing is not active" 
     
    215214          [ -z $CesmepPeriod ] && CesmepPeriod=X${config_Post_TimeSeriesFrequency%Y} 
    216215      fi 
    217   elif ([ X${config_Post_Cesmep} = XPack ]) ; then 
     216  elif [ X${config_Post_Cesmep} = XPack ] ; then 
    218217      if ([ X${config_Post_PackFrequency} = XNONE ] || [ X${config_Post_PackFrequency} = X ] ) ; then 
    219218          IGCM_debug_Exit "Cannot use Packed output for Cesmep : Pack post-processing is not active" 
     
    221220          [ -z $CesmepPeriod ] && CesmepPeriod=X${config_Post_PackFrequency%Y} 
    222221      fi 
    223   elif ([ X${config_Post_Cesmep} != XAtend ]) ; then 
    224       IGCM_debug_Exit "config.card Post section value for Cesmep is invalid (use SE, TS, Pack, AtEnd or TRUE) : ${config_Post_Cesmep}" 
     222  elif [ X${config_Post_Cesmep} != XAtEnd ] ; then 
     223      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" 
    225224  else 
    226         CesmepPeriod=NONE 
     225        [ -z $CesmepPeriod ] && CesmepPeriod=0 
    227226  fi 
    228227 
  • branches/libIGCM_CESMEP/libIGCM_post/libIGCM_post.ksh

    r1559 r1561  
    682682  fi 
    683683 
    684    
    685684  IGCM_debug_PopStack "IGCM_post_Submit" 
    686685} 
Note: See TracChangeset for help on using the changeset viewer.