New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 1301 for trunk/NVTK/INSTALL/JOBS/assessment.ksh – NEMO

Ignore:
Timestamp:
2009-02-09T18:15:38+01:00 (15 years ago)
Author:
ctlod
Message:

improvements of NVTK environnement, see ticket: #240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NVTK/INSTALL/JOBS/assessment.ksh

    r1297 r1301  
    22# $Id$ 
    33###################################################### 
    4 # Original : C. Talandier for ESOPA 
    5 # Contact  : opatlod@locean-ipsl.upmc.fr 
     4# Original : C. Talandier for NEMO team 
     5# Contact  : nemo_st@locean-ipsl.upmc.fr 
    66# 
    77# It is automatically launched (by the cron_jobs.ksh  
     
    6464CONF=$1 
    6565TODO=$2 
    66 TARGET=osxxlf 
    67 VERSION=$( ( awk '/test=/ { print $2 }' specifs.txt ) ) 
     66TARGET=sx8brodie 
     67EXPER=$( ( awk '/test=/ { print $2 }' specifs.txt ) ) 
    6868LRTYPE="$( ( awk '/runs=/ { printf  "%s %s %s", $2 , $3 , $4}' specifs.txt ) )" 
    6969VTIME=$( ( awk '/time=/ { print $2 }' specifs.txt ) ) 
    7070REF_TAG=$( (awk '/tagname=/ {print $2}' specifs.txt) ) 
    71 TITLE="NEMO VALIDATION ${VERSION} : $CONF on $TARGET" 
     71URL_USE=$( (awk '/URL:/ {print $0}' specifs.txt) ) 
     72REV_USE=$( (awk '/Revision:/ {print $2}' specifs.txt) ) 
     73TITLE="NEMO VALIDATION ${EXPER} : $CONF on $TARGET" 
    7274EMAIL='ctlod@locean-ipsl.upmc.fr' 
    7375 
     
    117119    fmes2=" `ls -o ${zf2check}`           " 
    118120    fmes3=" - file ${zf2check} is empty  " 
    119     fmes4="       Num. time steps:   done  /  expected " 
     121    fmes4="                  Num. time steps:   done  /  expected " 
    120122    if [ ${zreprint} = 'yes' ] ; then  
    121123        if [ ${zrepiter} == 0 ] ; then  
     
    321323 
    322324# List of files to treat 
    323 zcatfe[0]="mon/LONG/mon${zconf}_err" 
    324 zcatfe[1]="mon/GTIME/mon${zconf}_err" 
    325 zcatfe[2]="mpi/GTIME/mpi${zconf}_err" 
     325zcatfe[0]="mon/LONG/${EXPER}/mon${zconf}_err" 
     326zcatfe[1]="mon/GTIME/${EXPER}/mon${zconf}_err" 
     327zcatfe[2]="mpi/GTIME/${EXPER}/mpi${zconf}_err" 
    326328 
    327329ind=0 
     
    335337           cat ${kf} >> ${zname} 
    336338       done 
    337        cd ../.. 
     339       cd ../../.. 
    338340       let ind=${ind}+1 
    339341done 
     
    346348 
    347349# ############################### 
    348 # 0. CURRENT VERSION NAME 
     350# 0. EXPERIENCE NAME 
    349351# ############################### 
    350352echo " ############################                           "  > endjob.txt 
    351 echo " CURRENT VERSION: $VERSION                              " >> endjob.txt 
     353echo " EXPERIENCE NAME: $EXPER                                " >> endjob.txt 
    352354echo " ############################                           " >> endjob.txt 
    353355echo "                                                        " >> endjob.txt 
    354356echo "                                                        " >> endjob.txt 
     357 
     358# ############################### 
     359# 0.I LIST OF FILES TESTED, i.e. stored under NVTK/2TEST directory 
     360# ############################### 
     361nbfiles=$( (cat f2test.txt | wc -l) ) 
     362echo " #################################################      " >> endjob.txt 
     363echo " FILES STORED UNDER NVTK/2TEST DIRECTORY & TESTED       " >> endjob.txt 
     364echo " #################################################      " >> endjob.txt 
     365echo "                                                        " >> endjob.txt 
     366echo "   Number of files : ${nbfiles}                         " >> endjob.txt 
     367echo "                                                        " >> endjob.txt 
     368cat f2test.txt                                                  >> endjob.txt 
     369echo "                                                        " >> endjob.txt 
     370 
     371# ############################### 
     372# 0.II NEMO SOURCE FILES INFORMATION, i.e. revision & URL downloaded 
     373# ############################### 
     374echo " #############################                          " >> endjob.txt 
     375echo " NEMO SOURCE FILES INFORMATION                          " >> endjob.txt 
     376echo " #############################                          " >> endjob.txt 
     377echo "                                                        " >> endjob.txt 
     378echo "   NEMO downloaded from server: ${URL_USE}              " >> endjob.txt 
     379echo "   NEMO revision : ${REV_USE}                           " >> endjob.txt 
     380echo "                                                        " >> endjob.txt 
     381echo "                                                        " >> endjob.txt 
     382 
    355383 
    356384test -n "${TODO}" 
     
    363391# I. CHECK EXECUTABLE MEMORY SIZE 
    364392# ############################### 
    365 filecs='mon/LONG/memory_size.txt' ;  filers='mon/LONG/REF/memory_size.txt' 
    366 filecm="mon/LONG/mon${CONF}_err"  ;  filerm="mon/LONG/REF/mon${CONF}_err" 
     393filecs="mon/LONG/${EXPER}/memory_size.txt" ;  filers='mon/LONG/REF/memory_size.txt' 
     394filecm="mon/LONG/${EXPER}/mon${CONF}_err"  ;  filerm="mon/LONG/REF/mon${CONF}_err" 
    367395xfilecs=0  ; xfilecm=0 ; xfilers=0 ; xfilerm=0 
    368396echo " ############################                           " >> endjob.txt 
     
    380408 
    381409    if [ ${REF_TAG} ] ; then  
    382         ./MEM_size_${TARGET}.ksh -a ${xfilecm} -b ${xfilers} -d ${xfilerm} -c ${CONF} -o endjob.txt -t ${REF_TAG}  
     410        ./MEM_size_${TARGET}.ksh -a ${xfilecm} -b ${xfilers} -d ${xfilerm} -e ${EXPER} -c ${CONF} -o endjob.txt -t ${REF_TAG}  
    383411    else 
    384         ./MEM_size_${TARGET}.ksh -a ${xfilecm} -b ${xfilers} -d ${xfilerm} -c ${CONF} -o endjob.txt 
     412        ./MEM_size_${TARGET}.ksh -a ${xfilecm} -b ${xfilers} -d ${xfilerm} -e ${EXPER} -c ${CONF} -o endjob.txt 
    385413    fi 
    386414 
     
    415443 
    416444        # Check that timing file for the ${runt} current version exist 
    417         filecv="${runt}/GTIME/${runt}${CONF}_err"  
     445        filecv="${runt}/GTIME/${EXPER}/${runt}${CONF}_err"  
    418446        checkfile ${filecv} 'endjob.txt' NORM yes ; xfilecv=$? 
    419447 
     
    453481        echo "        -------------------------------------       " >> endjob.txt 
    454482 
    455         filemon="mon/LONG/solver.stat" ;  filexxx="${runt}/LONG/solver.stat" 
     483        filemon="mon/LONG/${EXPER}/solver.stat" ;  filexxx="${runt}/LONG/${EXPER}/solver.stat" 
    456484        xfilemon=0 
    457485 
     
    467495 
    468496            # check that ocean.output files exist 
    469             filemon="mon/LONG/ocean.output" ;  filexxx="${runt}/LONG/ocean.output" 
     497            filemon="mon/LONG/${EXPER}/ocean.output" ;  filexxx="${runt}/LONG/${EXPER}/ocean.output" 
    470498            xfilemon=0 
    471499 
     
    474502             
    475503            # check that tracer.stat files have been built based on ocean.output ones 
    476             filemon="mon/LONG/tracer.stat" ;  filexxx="${runt}/LONG/tracer.stat" 
     504            filemon="mon/LONG/${EXPER}/tracer.stat" ;  filexxx="${runt}/LONG/${EXPER}/tracer.stat" 
    477505            xfilemon=0 
    478506             
     
    504532    echo "        --------------------------                  " >> endjob.txt 
    505533 
    506     file1="${runt}/1_SHORT/solver.stat" ;  file2="${runt}/2_SHORT/solver.stat" ; file3="${runt}/LONG/solver.stat" 
     534    file1="${runt}/1_SHORT/${EXPER}/solver.stat" ;  file2="${runt}/2_SHORT/${EXPER}/solver.stat" ; file3="${runt}/LONG/${EXPER}/solver.stat" 
    507535    xfile1=0 
    508536    #------- 
     
    522550 
    523551       # check that ocean.output files exist 
    524         file1="${runt}/2_SHORT/ocean.output" ;  file2="${runt}/LONG/ocean.output" 
     552        file1="${runt}/2_SHORT/${EXPER}/ocean.output" ;  file2="${runt}/LONG/${EXPER}/ocean.output" 
    525553        xfile1=0 
    526554 
     
    529557             
    530558        # check that tracer.stat files have been built based on ocean.output ones 
    531         file1="${runt}/2_SHORT/tracer.stat" ;  file2="${runt}/LONG/tracer.stat" 
     559        file1="${runt}/2_SHORT/${EXPER}/tracer.stat" ;  file2="${runt}/LONG/${EXPER}/tracer.stat" 
    532560        xfile1=0 
    533561 
     
    565593        echo '                        ocean.output   .vs.    ocean.output        ' >> endjob.txt 
    566594 
    567         file1="${runt}/1_SHORT/solver.stat"          ;  file2="${runt}/2_SHORT/solver.stat" 
    568         filev1="${runt}/1_SHORT/REF/solver.stat"     ;  filev2="${runt}/2_SHORT/REF/solver.stat" 
    569         file_oc1="${runt}/1_SHORT/ocean.output"      ;  file_oc2="${runt}/2_SHORT/ocean.output" 
    570         file_roc1="${runt}/1_SHORT/REF/ocean.output" ;  file_roc2="${runt}/2_SHORT/REF/ocean.output" 
     595        file1="${runt}/1_SHORT/${EXPER}/solver.stat"          ;  file2="${runt}/2_SHORT/${EXPER}/solver.stat" 
     596        filev1="${runt}/1_SHORT/REF/solver.stat"              ;  filev2="${runt}/2_SHORT/REF/solver.stat" 
     597        file_oc1="${runt}/1_SHORT/${EXPER}/ocean.output"      ;  file_oc2="${runt}/2_SHORT/${EXPER}/ocean.output" 
     598        file_roc1="${runt}/1_SHORT/REF/ocean.output"          ;  file_roc2="${runt}/2_SHORT/REF/ocean.output" 
    571599        xfilev1=0 ; xfilev2=0 ; xfile_oc1=0 ; xfile_oc2=0 
    572600 
Note: See TracChangeset for help on using the changeset viewer.