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 14844 – NEMO

Changeset 14844


Ignore:
Timestamp:
2021-05-11T16:12:50+02:00 (3 years ago)
Author:
acc
Message:

Improvement of sette_rpt.sh to report timing information seperately

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette/sette_rpt.sh

    r14825 r14844  
    270270    f1s=$vdir/$nam/$mach/$dorv/LONG/run.stat 
    271271    f1t=$vdir/$nam/$mach/$dorv/LONG/tracer.stat 
    272     f1a=$vdir/$nam/$mach/$dorv/LONG/timing.output 
    273272    f2s=$vdirref/$nam/$mach/$dorvref/LONG/run.stat 
    274273    f2t=$vdirref/$nam/$mach/$dorvref/LONG/tracer.stat 
    275     f2a=$vdirref/$nam/$mach/$dorvref/LONG/timing.output 
    276274    if  [ ! -f $f1s ] && [ ! -f $f1t ] ; then 
    277275      printf "%-20s %s\n" $nam " incomplete test"; 
     
    328326      fi 
    329327    fi 
     328  fi 
     329} 
     330 
     331function runcmptim(){ 
     332# 
     333# compare timing.output file with reference file from a previous sette test or previous version 
     334# 
     335  vdir=$1 
     336  nam=$2 
     337  vdirref=$3 
     338  dorvref=$4 
     339  pass=$5 
     340# 
     341# get $dorv 
     342  get_dorv 
     343# 
     344# check if reference directory is present 
     345  if [ ! -d $vdirref/$nam/$mach/$dorvref ]; then 
     346    return 
     347  fi 
     348  if [ ! -d $vdir/$nam/$mach/$dorv ]; then 
     349    return 
     350  fi 
     351 
     352# 
     353  if [ -d $vdir/$nam/$mach/$dorv ]; then 
     354    f1a=$vdir/$nam/$mach/$dorv/LONG/timing.output 
     355    f2a=$vdirref/$nam/$mach/$dorvref/LONG/timing.output 
    330356# 
    331357# Report average CPU time differences (if available) 
     
    550576     echo "REFERENCE directory : $NEMO_VALID_REF at rev $NEMO_REV_REF" 
    551577     echo '' 
    552      for repro_test in WGYRE_PISCES_ST WORCA2_ICE_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_ICE_ST WAGRIF_DEMO_ST WWED025_ST WISOMIP+_ST WVORTEX_ST WICE_AGRIF_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST WSWG_ST 
     578     checklist=(WGYRE_PISCES_ST WORCA2_ICE_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_ICE_ST WAGRIF_DEMO_ST WWED025_ST WISOMIP+_ST WVORTEX_ST WICE_AGRIF_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST WSWG_ST) 
     579     for repro_test in ${checklist[@]} 
    553580     do 
    554581       runcmpres $NEMO_VALID $repro_test $NEMO_VALID_REF $NEMO_REV_REF $pass 
     582     done 
     583     echo '' 
     584     echo 'Report timing differences between REFERENCE and VALID (if available) :' 
     585     for repro_test in ${checklist[@]} 
     586     do 
     587       runcmptim $NEMO_VALID $repro_test $NEMO_VALID_REF $NEMO_REV_REF $pass 
    555588     done 
    556589   else 
Note: See TracChangeset for help on using the changeset viewer.