Changes in / [652286a:98f09d2] in flex_extract.git


Ignore:
Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • Source/Fortran/calc_etadot.f90

    rd90a529 rdfa7dbd  
    486486  END IF ! MGAUSS
    487487
    488 ! CREATE FILE VERTICAL.EC NEEDED BY POP MODEL 
    489 ! 2020-06-25 Commented out by PS - not needed anymore
    490 
    491 !  OPEN(21,FILE='VERTICAL.EC')
    492 !  WRITE(21,'(A)')
    493 !  WRITE(21,'(A)') 'VERTICAL DISCRETIZATION OF POP MODEL'
    494 !  WRITE(21,'(A)')
    495 !  write(21,'(i3,a)') MLEVEL,'   number of layers'
    496 !  WRITE(21,'(A)')
    497 !  WRITE(21,'(A)') '* A(NLEV+1)'
    498 !  WRITE(21,'(A)')
    499 !  DO 205 I=1,MLEVEL+1
    500 !205 WRITE(21,'(F18.12)') AK(I)
    501 !  WRITE(21,'(A)')
    502 !  WRITE(21,'(A)') '* B(NLEV+1)'
    503 !  WRITE(21,'(A)')
    504 !  DO 210 I=1,MLEVEL+1
    505 !210 WRITE(21,'(F18.12)') BK(I)
    506 !  CLOSE(21)
     488!! CREATE FILE VERTICAL.EC NEEDED BY POP MODEL 
     489
     490  OPEN(21,FILE='VERTICAL.EC')
     491  WRITE(21,'(A)')
     492  WRITE(21,'(A)') 'VERTICAL DISCRETIZATION OF POP MODEL'
     493  WRITE(21,'(A)')
     494  write(21,'(i3,a)') MLEVEL,'   number of layers'
     495  WRITE(21,'(A)')
     496  WRITE(21,'(A)') '* A(NLEV+1)'
     497  WRITE(21,'(A)')
     498  DO 205 I=1,MLEVEL+1
     499205 WRITE(21,'(F18.12)') AK(I)
     500  WRITE(21,'(A)')
     501  WRITE(21,'(A)') '* B(NLEV+1)'
     502  WRITE(21,'(A)')
     503  DO 210 I=1,MLEVEL+1
     504210 WRITE(21,'(F18.12)') BK(I)
     505  CLOSE(21)
    507506
    508507!------------------------------------------------------------------
  • Source/Fortran/makefile_debug

    rd2d6cf9 r5868d74  
    1515EXE      =  calc_etadot_debug.out
    1616
    17 ECCODES_LIB=  -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm
     17ECCODES_LIB=  -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper
    1818EMOSLIB=-lemosR64
    1919LIB =  $(ECCODES_LIB) $(EMOSLIB)
  • Source/Fortran/makefile_fast

    r14d9618 r5f67883  
    1515EXE      =  calc_etadot_fast.out
    1616
    17 ECCODES_LIB =  -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm
     17ECCODES_LIB =  -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper
    1818EMOSLIB=-lemosR64
    1919LIB =  $(ECCODES_LIB) $(EMOSLIB)
    2020
    21 ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15
    22 #/usr/local/include/ #oldstable
    23 
     21ECCODES_INCLUDE_DIR=/usr/local/include/
     22#/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15
    2423INC = -I. -I$(ECCODES_INCLUDE_DIR)
    2524
    2625FC = gfortran
    27 OPT = -O3 # -O3 -march=native
     26OPT = -O3 -march=native
    2827FFLAGS =   $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian
    2928LDFLAGS =  $(OPT) $(LIB) -fopenmp
  • Testing/Regression/FortranEtadot/run_ref.sh

    r14d9618 r6bc4b42  
    1414exefast=calc_etadot_fast.out
    1515hash=$(git log --abbrev-commit --pretty=oneline -n 1  --pretty=format:'%h')
    16 csvfile='runtimes_'${HOST}'.csv'
    1716exitonfail=true
    1817rm -f log.run_ref failed
     
    2019# loop over all reference runs
    2120rm -f log.run_ref
    22 rm -f Work/*
    2321
    2422if [ "$1" = omithigh ]; then # for fast testing, not for production
     
    5351      if [ "${exitonfail}" = true ]; then exit; fi
    5452    fi
    55     for outfile in 'fort.15' ; do
     53    for outfile in 'fort.15' 'VERTICAL.EC'; do
    5654      if [ -e $outfile ]; then
    5755        mv ${outfile} ../${outdir}
     
    7068  # compare debug and fast
    7169  # omega case also produces fort.25 - need to add this
    72   for outfile in 'fort.15' ; do
     70  for outfile in 'fort.15' 'VERTICAL.EC'; do
    7371    outdebug='Outputs/Output_ref_'${ref}'_debug/'$outfile
    7472    outfast='Outputs/Output_ref_'${ref}'_fast/'$outfile
    75     test=$()
    76     if cmp -s $outdebug $outfast >/dev/null; then
     73    test=$(cmp  $outdebug $outfast)
     74    if $test; then
    7775      echo $outfile '    equal for debug and fast' >> log.run_ref
    7876    else
     
    9088    user=$(echo $times | grep user | awk '{print $4}')
    9189    sys=$( echo $times | grep sys  | awk '{print $6}')
    92     echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ${csvfile}
     90    echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> runtimes.csv
    9391    tail -1 runtimes.csv >> log.run_ref
    9492  done
  • Testing/Regression/FortranEtadot/run_regrtest.sh

    r14d9618 rdfa7dbd  
    1717exefast=calc_etadot_fast.out
    1818hash=$(git log --abbrev-commit --pretty=oneline -n 1  --pretty=format:'%h')
    19 csvfile='runtimes_'${HOST}'.csv'
    2019exitonfail=true
    2120numtest=0
     
    3332for ref in $inputs; do
    3433
    35   echo 'Working on test case =' $ref | tee -a ../log.run_regr
     34  echo 'Working on test case =' $ref
    3635
    3736  # loop over debug and fast runs
     
    6362        # omega case also produces fort.25 - need to add this
    6463        outref='../Outputs/Output_ref_'${ref}'_'${exe}'/'$outfile
    65         if cmp -s $outfile $outref >/dev/null; then
     64        test=$(cmp  $outfile $outref)
     65        if $test; then
    6666          echo '    '$outfile '    test passed' | tee -a ../log.run_regr
    6767        else
     
    8585    user=$(echo $times | grep user | awk '{print $4}')
    8686    sys=$( echo $times | grep sys  | awk '{print $6}')
    87     echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ../${csvfile}
    88     tail -1 ../${csvfile} >> log.run_regr
     87    echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ../runtimes.csv
     88    tail -1 ../runtimes.csv >> log.run_regr
    8989
    9090    cd ..
    91     rm -f Work/* # this is for being more safe
     91    rm Work/* # this is for being more safe
    9292
    9393  done # end of exe loop
     
    100100  | tee -a ../log.run_regr
    101101echo ' More information may be found in log.run_regr'
    102 echo ' Runtimes were added to '${csvfile}' under '$hash | tee -a ../log.run_regr
     102echo ' Runtimes were added to runtimes.csv under '$hash | tee -a ../log.run_regr
    103103
    104104# the following code is executed only if exitonfail is not set to 'true'.
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG