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

File:
1 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} 
Note: See TracChangeset for help on using the changeset viewer.