Changeset 1848


Ignore:
Timestamp:
08/06/12 15:53:59 (12 years ago)
Author:
acosce
Message:

Add some information in bilan + management of simulation tar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/showPackProgress.sh

    r1822 r1848  
    133133nbOfListsPacked=0 
    134134nbOfListsFailed=0 
     135TotalNbInodes=0 
     136TotalSimuTar=0 
    135137 
    136138for CONFIG in $( awk '{print $1}' ${IGCM_DEM}/config_card.liste ) ; do  
     
    138140    DEM_state=$( DEM_read_state ${IGCM_DEM}/config_card.liste ${CONFIG} ) 
    139141 
    140     if [[ "${DEM_state}" != "WriteListTarDone" ]] ; then 
     142    if [[ "${DEM_state}" != "TarDone" ]] ; then 
    141143 
    142144         simuName=$( getSimuName $CONFIG ) 
     
    169171             do 
    170172                  listName=`echo $(basename $set) | sed 's;\.list$;;' | sed 's;\.nc$;;' ` 
    171              
     173                  ListNbInode=`cat $set |wc -l` 
     174                  TotalNbInodes=$(( $TotalNbInodes + $ListNbInode )) 
    172175                  statusfile=${set%%.list}.status 
    173176                  status=$( progressStatus $statusfile ) # gpdebug : a retablir 
     
    192195             done 
    193196         done 
     197    else 
     198#si "${DEM_state}" == "TarDone" 
     199 
     200         simuName=$( getSimuName $CONFIG ) 
     201         echo "*******************************************" 
     202         echo "simulation : $simuName TAR" 
     203         echo "*******************************************" 
     204         TotalSimuTar=$(( $TotalSimuTar + 1 )) 
    194205    fi 
    195206done 
     207 
     208NbInodeBefore=`cat ${IGCM_DEM}/Listing.txt |wc -l` 
     209find $IGCM_DEM -printf "%y %s %p \n" >> ${IGCM_DEM}/ListingEnd.txt 
     210NbInodeAfter=`cat ${IGCM_DEM}/ListingEnd.txt |wc -l` 
    196211echo 
    197212echo "##################" 
     
    200215echo "nb of Lists packed with success : ${nbOfListsPacked} / ${totalNbOfList}" 
    201216echo "nb of fails : $nbOfListsFailed" 
    202  
    203  
    204  
    205  
     217echo "nb of inodes packed : $TotalNbInodes" 
     218echo "nb simul full tared : $TotalSimuTar" 
     219echo "nb inode before : $NbInodeBefore" 
     220echo "nb inode after : $NbInodeAfter" 
     221 
     222 
     223 
     224 
Note: See TracChangeset for help on using the changeset viewer.