File: lid.sh

package info (click to toggle)
gerris 20131206%2Bdfsg-19
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 13,488 kB
  • sloc: ansic: 66,593; sh: 15,922; f90: 1,513; makefile: 1,150; fortran: 696; python: 493; awk: 104; lisp: 89; xml: 27
file content (19 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if test x$donotrun != xtrue; then
    if gerris2D $1; then :
    else
	exit 1
    fi
fi

if python <<EOF ; then :
from check import *
from sys import *
if (Curve('xprof',3,7) - Curve('xprof.ghia',1,2)).normi() > 2e-2 or \
   (Curve('yprof',2,8) - Curve('yprof.ghia',1,2)).normi() > 1.7e-2:
    print (Curve('xprof',3,7) - Curve('xprof.ghia',1,2)).normi()
    print (Curve('yprof',2,8) - Curve('yprof.ghia',1,2)).normi()
    exit(1)
EOF
else
   exit 1
fi