Changeset 652286a in flex_extract.git for Testing/Regression/FortranEtadot/run_ref.sh


Ignore:
Timestamp:
Jul 7, 2020, 4:08:49 PM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
e0005c9
Parents:
98f09d2 (diff), 14d9618 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'dev' of https://www.flexpart.eu/git/flex_extract into dev
Changes due to Manuscript review for Fortran part (Petra)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Testing/Regression/FortranEtadot/run_ref.sh

    r6bc4b42 r14d9618  
    1414exefast=calc_etadot_fast.out
    1515hash=$(git log --abbrev-commit --pretty=oneline -n 1  --pretty=format:'%h')
     16csvfile='runtimes_'${HOST}'.csv'
    1617exitonfail=true
    1718rm -f log.run_ref failed
     
    1920# loop over all reference runs
    2021rm -f log.run_ref
     22rm -f Work/*
    2123
    2224if [ "$1" = omithigh ]; then # for fast testing, not for production
     
    5153      if [ "${exitonfail}" = true ]; then exit; fi
    5254    fi
    53     for outfile in 'fort.15' 'VERTICAL.EC'; do
     55    for outfile in 'fort.15' ; do
    5456      if [ -e $outfile ]; then
    5557        mv ${outfile} ../${outdir}
     
    6870  # compare debug and fast
    6971  # omega case also produces fort.25 - need to add this
    70   for outfile in 'fort.15' 'VERTICAL.EC'; do
     72  for outfile in 'fort.15' ; do
    7173    outdebug='Outputs/Output_ref_'${ref}'_debug/'$outfile
    7274    outfast='Outputs/Output_ref_'${ref}'_fast/'$outfile
    73     test=$(cmp  $outdebug $outfast)
    74     if $test; then
     75    test=$()
     76    if cmp -s $outdebug $outfast >/dev/null; then
    7577      echo $outfile '    equal for debug and fast' >> log.run_ref
    7678    else
     
    8890    user=$(echo $times | grep user | awk '{print $4}')
    8991    sys=$( echo $times | grep sys  | awk '{print $6}')
    90     echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> runtimes.csv
     92    echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ${csvfile}
    9193    tail -1 runtimes.csv >> log.run_ref
    9294  done
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG