Changeset 1395


Ignore:
Timestamp:
06/19/17 15:44:03 (7 years ago)
Author:
sdipsl
Message:
  • Add a LightRestartPack? option. Section [Post] in config.card. If TRUE will save only the latest restart files set. See #302

It is false by default for ascendant compatibility

Location:
trunk/libIGCM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_pack_restart

    r1356 r1395  
    2727#-Q- ada # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) 
    2828#-Q- ada # @ notification = error 
    29 #-Q- ada # @ environment  = $DEBUG_debug ; $BigBrother ; $postProcessingStopLevel ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $POST_DIR ; $Script_Post_Output ; $SUBMIT_DIR ; $DateBegin ; $DateEnd ; $PeriodPack ; $StandAlone ; $MASTER ; wall_clock_limit=$(wall_clock_limit) 
     29#-Q- ada # @ environment  = $DEBUG_debug ; $BigBrother ; $postProcessingStopLevel ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $POST_DIR ; $Script_Post_Output ; $SUBMIT_DIR ; $PeriodDateBegin ; $DateBegin ; $DateEnd ; $PeriodPack ; $StandAlone ; $MASTER ; wall_clock_limit=$(wall_clock_limit) 
    3030#-Q- ada # @ queue 
    3131#-Q- lxiv8 ###################### 
     
    205205rm -f ${RUN_DIR}/new_liste_restart_files.txt 
    206206rm -f ${RUN_DIR}/liste_pack_*.txt 
     207rm -f ${RUN_DIR}/liste_pack_light_*.txt 
    207208 
    208209# Create sorted restart list to work with 
     
    251252      [ ${date_file} -eq ${date_end_pack} ] || echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${date_begin_pack}_${date_end_pack}.txt 
    252253    fi 
     254    # light pack list of restarts files that will be used 
     255    if [ X${config_Post_LightRestartPack} = XTRUE ] ; then 
     256      if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${PeriodDateBegin} ] ; then 
     257        echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_light_${date_begin_pack}_${date_end_pack}.txt 
     258      fi 
     259    fi 
    253260  done 
    254261 
    255262  # Create tar files 
    256263  IGCM_debug_Print 1 "Tar ongoing" 
    257   tar -cvf ${JobName}_${date_begin_pack}_${date_end_pack}_restart.tar --dereference --files-from ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt 
     264  if [ X${config_Post_LightRestartPack} = XTRUE ] ; then 
     265    tar -cvf ${JobName}_${date_begin_pack}_${date_end_pack}_restart.tar --dereference --files-from ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt 
     266  else 
     267    tar -cvf ${JobName}_${date_begin_pack}_${date_end_pack}_restart.tar --dereference --files-from ${RUN_DIR}/liste_pack_light_${date_begin_pack}_${date_end_pack}.tx 
     268  fi 
    258269  # Save it 
    259270  IGCM_sys_Put_Out ${JobName}_${date_begin_pack}_${date_end_pack}_restart.tar ${STORE_RESTART} 
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1392 r1395  
    169169  if ( [ X${config_Post_IgnoreNonMonotonic} = X${NULL_STR} ] || [ X${config_Post_IgnoreNonMonotonic} = X ] ) ; then 
    170170    config_Post_IgnoreNonMonotonic=FALSE 
     171  fi 
     172 
     173  #==================================================== 
     174  # LightRestartPack : apply default value if not defined 
     175  if ( [ X${config_Post_LightRestartPack} = X${NULL_STR} ] || [ X${config_Post_LightRestartPack} = X ] ) ; then 
     176    config_Post_LightRestartPack=FALSE 
    171177  fi 
    172178 
  • trunk/libIGCM/libIGCM_post/libIGCM_post.ksh

    r1298 r1395  
    494494    export POST_DIR=${POST_DIR} 
    495495    export MASTER=${MASTER} 
     496    export PeriodDateBegin=${PeriodDateBegin} 
    496497    export DateBegin=${PackDateBegin} 
    497498    export DateEnd=${PeriodDateEnd} 
Note: See TracChangeset for help on using the changeset viewer.