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 14874 for utils/CI – NEMO

Changeset 14874 for utils/CI


Ignore:
Timestamp:
2021-05-17T21:03:23+02:00 (3 years ago)
Author:
acc
Message:

Branch: sette_ticket2673. Fix a bug in sette_rpt.sh and add an option to over-ride the reference revision number. See #2673

File:
1 edited

Legend:

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

    r14870 r14874  
    257257# 
    258258# check if reference directory is present 
    259   if [ ! -d $vdirref/$mach/$dorv/$nam ]; then 
     259  if [ ! -d $vdirref/$mach/$dorvref/$nam ]; then 
    260260    printf "%-27s %s\n" $nam " REFERENCE directory at $dorvref is MISSING" 
    261261    return 
     
    270270    f1s=$vdir/$mach/$dorv/$nam/LONG/run.stat 
    271271    f1t=$vdir/$mach/$dorv/$nam/LONG/tracer.stat 
    272     f2s=$vdirref/$mach/$dorv/$nam/LONG/run.stat 
    273     f2t=$vdirref/$mach/$dorv/$nam/LONG/tracer.stat 
     272    f2s=$vdirref/$mach/$dorvref/$nam/LONG/run.stat 
     273    f2t=$vdirref/$mach/$dorvref/$nam/LONG/tracer.stat 
    274274    if  [ ! -f $f1s ] && [ ! -f $f1t ] ; then 
    275275      printf "%-20s %s\n" $nam " incomplete test"; 
     
    343343# 
    344344# check if reference directory is present 
    345   if [ ! -d $vdirref/$mach/$dorv/$nam ]; then 
     345  if [ ! -d $vdirref/$mach/$dorvref/$nam ]; then 
    346346    return 
    347347  fi 
     
    353353  if [ -d $vdir/$mach/$dorv/$nam ]; then 
    354354    f1a=$vdir/$mach/$dorv/$nam/LONG/timing.output 
    355     f2a=$vdirref/$mach/$dorv/$nam/LONG/timing.output 
     355    f2a=$vdirref/$mach/$dorvref/$nam/LONG/timing.output 
    356356# 
    357357# Report average CPU time differences (if available) 
     
    472472# overwrite revision (later) or compiler 
    473473  if [ $# -gt 0 ]; then 
    474     while getopts r:c:v:h option; do  
     474    while getopts r:R:c:v:h option; do  
    475475       case $option in 
    476476          c) mach=$OPTARG;; 
    477477          r) rev=$OPTARG;; 
     478          R) refrev=$OPTARG;; 
    478479          v) SETTE_SUB_VAL=$OPTARG;; 
    479480          h | *) echo '' 
     
    484485                 echo ' -r REVISION_number :' 
    485486                 echo '     display sette results for the specified revision (set old for the latest revision available for each config)' 
     487                 echo ' -R REFERENCE REVISION_number :' 
     488                 echo '     compare sette results against the specified reference revision (use to over-ride value set in param.cfg)' 
    486489                 echo ' -v sub_dir :' 
    487490                 echo '     validation sub-directory below NEMO_VALIDATION_DIR' 
     
    510513  NEMO_VALID=${NEMO_VALIDATION_DIR} 
    511514  NEMO_VALID_REF=${NEMO_VALIDATION_REF} 
     515  if [ ! -z $refrev ] ; then 
     516    NEMO_REV_REF=${refrev} 
     517  fi 
    512518# 
    513519  if [ ! -d $NEMO_VALID ]; then 
Note: See TracChangeset for help on using the changeset viewer.