Changes in / [98f09d2:652286a] in flex_extract.git
- Files:
-
- 1 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Fortran/calc_etadot.f90
rdfa7dbd rd90a529 486 486 END IF ! MGAUSS 487 487 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 499 205 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 504 210 WRITE(21,'(F18.12)') BK(I) 505 CLOSE(21) 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) 506 507 507 508 !------------------------------------------------------------------ -
Source/Fortran/makefile_debug
r5868d74 rd2d6cf9 15 15 EXE = calc_etadot_debug.out 16 16 17 ECCODES_LIB= -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper17 ECCODES_LIB= -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm 18 18 EMOSLIB=-lemosR64 19 19 LIB = $(ECCODES_LIB) $(EMOSLIB) -
Source/Fortran/makefile_fast
r5f67883 r14d9618 15 15 EXE = calc_etadot_fast.out 16 16 17 ECCODES_LIB = -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper17 ECCODES_LIB = -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm 18 18 EMOSLIB=-lemosR64 19 19 LIB = $(ECCODES_LIB) $(EMOSLIB) 20 20 21 ECCODES_INCLUDE_DIR=/usr/local/include/ 22 #/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15 21 ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15 22 #/usr/local/include/ #oldstable 23 23 24 INC = -I. -I$(ECCODES_INCLUDE_DIR) 24 25 25 26 FC = gfortran 26 OPT = -O3 -march=native27 OPT = -O3 # -O3 -march=native 27 28 FFLAGS = $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian 28 29 LDFLAGS = $(OPT) $(LIB) -fopenmp -
Testing/Regression/FortranEtadot/run_ref.sh
r6bc4b42 r14d9618 14 14 exefast=calc_etadot_fast.out 15 15 hash=$(git log --abbrev-commit --pretty=oneline -n 1 --pretty=format:'%h') 16 csvfile='runtimes_'${HOST}'.csv' 16 17 exitonfail=true 17 18 rm -f log.run_ref failed … … 19 20 # loop over all reference runs 20 21 rm -f log.run_ref 22 rm -f Work/* 21 23 22 24 if [ "$1" = omithigh ]; then # for fast testing, not for production … … 51 53 if [ "${exitonfail}" = true ]; then exit; fi 52 54 fi 53 for outfile in 'fort.15' 'VERTICAL.EC'; do55 for outfile in 'fort.15' ; do 54 56 if [ -e $outfile ]; then 55 57 mv ${outfile} ../${outdir} … … 68 70 # compare debug and fast 69 71 # omega case also produces fort.25 - need to add this 70 for outfile in 'fort.15' 'VERTICAL.EC'; do72 for outfile in 'fort.15' ; do 71 73 outdebug='Outputs/Output_ref_'${ref}'_debug/'$outfile 72 74 outfast='Outputs/Output_ref_'${ref}'_fast/'$outfile 73 test=$( cmp $outdebug $outfast)74 if $test; then75 test=$() 76 if cmp -s $outdebug $outfast >/dev/null; then 75 77 echo $outfile ' equal for debug and fast' >> log.run_ref 76 78 else … … 88 90 user=$(echo $times | grep user | awk '{print $4}') 89 91 sys=$( echo $times | grep sys | awk '{print $6}') 90 echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> runtimes.csv92 echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ${csvfile} 91 93 tail -1 runtimes.csv >> log.run_ref 92 94 done -
Testing/Regression/FortranEtadot/run_regrtest.sh
rdfa7dbd r14d9618 17 17 exefast=calc_etadot_fast.out 18 18 hash=$(git log --abbrev-commit --pretty=oneline -n 1 --pretty=format:'%h') 19 csvfile='runtimes_'${HOST}'.csv' 19 20 exitonfail=true 20 21 numtest=0 … … 32 33 for ref in $inputs; do 33 34 34 echo 'Working on test case =' $ref 35 echo 'Working on test case =' $ref | tee -a ../log.run_regr 35 36 36 37 # loop over debug and fast runs … … 62 63 # omega case also produces fort.25 - need to add this 63 64 outref='../Outputs/Output_ref_'${ref}'_'${exe}'/'$outfile 64 test=$(cmp $outfile $outref) 65 if $test; then 65 if cmp -s $outfile $outref >/dev/null; then 66 66 echo ' '$outfile ' test passed' | tee -a ../log.run_regr 67 67 else … … 85 85 user=$(echo $times | grep user | awk '{print $4}') 86 86 sys=$( echo $times | grep sys | awk '{print $6}') 87 echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ../ runtimes.csv88 tail -1 ../ runtimes.csv>> log.run_regr87 echo $hash, "'"reference"'", "'"${ref}'_'${exe}"'", ${real}, ${user}, ${sys} >> ../${csvfile} 88 tail -1 ../${csvfile} >> log.run_regr 89 89 90 90 cd .. 91 rm Work/* # this is for being more safe91 rm -f Work/* # this is for being more safe 92 92 93 93 done # end of exe loop … … 100 100 | tee -a ../log.run_regr 101 101 echo ' More information may be found in log.run_regr' 102 echo ' Runtimes were added to runtimes.csvunder '$hash | tee -a ../log.run_regr102 echo ' Runtimes were added to '${csvfile}' under '$hash | tee -a ../log.run_regr 103 103 104 104 # the following code is executed only if exitonfail is not set to 'true'.
Note: See TracChangeset
for help on using the changeset viewer.