Changeset 350


Ignore:
Timestamp:
09/14/10 16:32:41 (14 years ago)
Author:
mmaipsl
Message:

Add move of simple Output files (for OCE mesh mask).
Correct REBUILD move.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_move-and-rename

    r349 r350  
    9797 
    9898#************************************************************** 
    99 # Author: Sebastien Denvil 
    100 # Contact: Sebastien.Denvil@ipsl.jussieu.fr 
     99# Author: Martial Mancip 
     100# Contact: Martial.Mancip@ipsl.jussieu.fr 
    101101# $Date: $ 
    102102# $Author: $ 
     
    333333 
    334334# Change JobName and copy run.card 
    335 REPLACE_sed ${OutinDir}/run.card ${OutNEWDir} 
     335if [ -f ${OutinDir}/run.card ] ; then 
     336    REPLACE_sed ${OutinDir}/run.card ${OutNEWDir} 
     337fi 
    336338 
    337339# Just copy historical run.card 
     
    382384        MOVE_and_RENAME_files "listfiles" 
    383385    done 
     386 
     387    unset COMPFILES 
     388    set +A COMPFILES -- $( find ${R_SAVE}/${comp}/Output -type f ) 
     389     
     390    if [ ${#COMPFILES[*]} -gt 0 ] ; then 
     391        IGCM_debug_Print 2 "simple Output FILES : ${COMPFILES[*]}." 
     392 
     393        MOVE_and_RENAME_files "COMPFILES" 
     394    fi 
    384395done 
    385396 
     
    513524 
    514525    IGCM_debug_Print 1 "Move REBUILD" 
    515     set +A LISTREBUILDS -- $( find ${REBUILD_DIR} -type d  -not -name "*${config_UserChoices_JobName}" ) 
    516  
    517     for rebdir in ${LISTREBUILDS[*]} ; do 
     526    set +A LISTREBUILDS -- $( find ${REBUILD_DIR} -type d  -not -name "*${config_UserChoices_JobName}" -a -not -name "*TMP" ) 
     527 
     528    for ThisREBDir in ${LISTREBUILDS[*]} ; do 
     529        rebdir=$( basename ${ThisREBDir} ) 
    518530        IGCM_debug_Print 2 "${rebdir}." 
    519531        if [ X${config_Post_RebuildFromArchive} = Xtrue ] ; then 
     
    523535        fi 
    524536        REPLACE_sed ${REBUILD_DIR}/${rebdir}/rebuild.ksh ${NEW_REBUILD_DIR}/${rebdir} 
    525         IGCM_sys_Mv -f ${REBUILD_DIR}/${rebdir} ${NEW_REBUILD_DIR} 
     537        IGCM_sys_Mv -f ${REBUILD_DIR}/${rebdir}/* ${NEW_REBUILD_DIR}/${rebdir}/ 
    526538    done 
    527539fi 
Note: See TracChangeset for help on using the changeset viewer.