Changeset 1876 for TOOLS


Ignore:
Timestamp:
09/12/12 17:05:43 (12 years ago)
Author:
gpincka
Message:

correction pour simu type 'tar full'

Location:
TOOLS/PACK_IPSL
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/enlarge_my_files.sh

    r1875 r1876  
    280280            #----------------------------------- 
    281281            # nbtries = number of lines from status file (first comment line gives 1 for the first try) 
    282             # nbtries=`wc -l $statusfile | cut -d' ' -f1`                
     282            nbtries=`wc -l $statusfile | cut -d' ' -f1`          
    283283            # echo "Nb of tries: $nbtries" 
    284284 
     
    364364            #----------------------------------- 
    365365            # nbtries = number of lines from status file (first comment line gives 1 for the first try) 
    366             # nbtries=`wc -l $statusfile | cut -d' ' -f1`                
     366            nbtries=`wc -l $statusfile | cut -d' ' -f1`          
    367367            # echo "Nb of tries: $nbtries" 
    368368 
     
    440440            #----------------------------------- 
    441441            # nbtries = number of lines from status file (first comment line gives 1 for the first try) 
    442             # nbtries=`wc -l $statusfile | cut -d' ' -f1`                
     442            nbtries=`wc -l $statusfile | cut -d' ' -f1`          
    443443            # echo "Nb of tries: $nbtries" 
    444444 
     
    516516            #----------------------------------- 
    517517            # nbtries = number of lines from status file (first comment line gives 1 for the first try) 
    518             # nbtries=`wc -l $statusfile | cut -d' ' -f1`                
     518            nbtries=`wc -l $statusfile | cut -d' ' -f1`          
    519519            # echo "Nb of tries: $nbtries" 
    520520 
     
    585585            #----------------------------------- 
    586586            # nbtries = number of lines from status file (first comment line gives 1 for the first try) 
    587             # nbtries=`wc -l $statusfile | cut -d' ' -f1`                
     587            nbtries=`wc -l $statusfile | cut -d' ' -f1`          
    588588            # echo "Nb of tries: $nbtries" 
    589589 
     
    627627    done 
    628628fi 
    629 # if [ "$baseNameOfListFile" == "tar_full_simul.list" ] 
     629 
    630630for set in $( ls ${PATH_SIMU}/*.list | grep "tar_full_simul" ) 
    631631do 
     
    650650                printf "====> " 
    651651                tail -1 $statusfile 
    652                 exit 0 
     652                continue 
    653653        fi 
    654  
     654         
     655        #----------------------------------- 
     656        # nbtries = number of lines from status file (first comment line gives 1 for the first try) 
     657        nbtries=`wc -l $statusfile | cut -d' ' -f1`          
     658        # echo "Nb of tries: $nbtries" 
     659             
    655660        #----------------------------------- 
    656661        # Set output file name from list name 
    657662        # echo "PATH_SIMU=$PATH_SIMU" 
    658663        dirOfOutputFile=`echo $PATH_SIMU | sed "s;${IGCM_DEM};${OUTPUT_STORE};" ` 
    659         fileout=${dirnameOfListFile}.tar 
     664        # echo "dirOfOutputFile=$dirOfOutputFile" 
     665        dirOfOutputFile_Up=$( dirname $dirOfOutputFile ) 
     666        PATH_SIMU_NAME=$( basename $dirOfOutputFile ) 
     667        fileout=${PATH_SIMU_NAME}.tar 
    660668        # echo "dirnameOfListFile=$dirnameOfListFile" 
    661         outputfile=$dirOfOutputFile/${fileout} 
    662         mkdir -p $dirOfOutputFile 
     669        outputfile=$dirOfOutputFile_Up/${fileout} 
     670        # echo "outputfile=$outputfile" 
     671        # exit 1 # gpdebug : a virer 
     672        mkdir -p $dirOfOutputFile_Up 
    663673        echo "Output file to write: $outputfile  tar_full_simul" 
    664674         
  • TOOLS/PACK_IPSL/launch_ipsl_enlarge.sh

    r1875 r1876  
    128128        DEM_write_state ${IGCM_DEM}/config_card.liste ${CONFIG} TarRunning 
    129129        export PATH_SIMU=$( dirname $CONFIG ) 
    130         ${EXE_DIR}/tar_full_simu.sh  ${INPUT_DMF_DATA} ${OUTPUT_STORE} ${CONFIG} 
    131          
     130        # ${EXE_DIR}/tar_full_simu.sh  ${INPUT_DMF_DATA} ${OUTPUT_STORE} ${CONFIG} 
     131        ${EXE_DIR}/enlarge_my_files.sh  ${INPUT_DMF_DATA} ${OUTPUT_STORE} ${CONFIG} 
    132132        DEM_write_state ${IGCM_DEM}/config_card.liste ${CONFIG} TarDone 
    133133 
  • TOOLS/PACK_IPSL/showPackProgress.sh

    r1871 r1876  
    250250         nbOfListsNottreated=$(( $nbOfListsNottreated + 1 )) 
    251251         simuOK=$(( $simuOK && 0 )) # marque une simu pas OK 
    252      simutreated=$(( $simutreated && 0 )) # marque une simu non completement traitee 
     252         simutreated=$(( $simutreated && 0 )) # marque une simu non completement traitee 
    253253     fi 
    254254 
Note: See TracChangeset for help on using the changeset viewer.