File: gaussian.sh

package info (click to toggle)
gerris 20131206%2Bdfsg-21
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 14,252 kB
  • sloc: ansic: 66,595; sh: 15,922; f90: 1,513; makefile: 1,150; fortran: 696; python: 493; awk: 104; lisp: 89; xml: 27
file content (28 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
emax=$2

if test x$donotrun != xtrue; then
    awk '{printf("%4.3f %4.3f 0.\n",0.,$1)}' < prof.ref > profile
    if ( gerris2D -DLEVEL=7 $1 ) ; then :
    else
	exit 1
    fi     	
    
else
    exit 1
fi

if cat <<EOF | python3 ; then :
from check import *
from sys import *
avg = (Curve('prof.ref',1,2) - Curve('prof.dat',3,5)).mean()
print(avg)
c = Curve()
for p in Curve('prof.dat',3,5).l:
    c.l.append((p[0], p[1] + avg))
if (Curve('prof.ref',1,2) - c).normi() > $emax:
   print((Curve('prof.ref',1,2) - c).normi())
   exit(1)
EOF
else
   exit 1
fi