File: shear.sh

package info (click to toggle)
gerris 20131206%2Bdfsg-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, 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 (27 lines) | stat: -rw-r--r-- 704 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
20
21
22
23
24
25
26
27
if test x$donotrun != xtrue; then
    if gerris2D $1; then :
    else
	exit 1
    fi
fi

if awk '{print $5 " & " $7 " & " $9 "\\\\"}' < norms > norms.tex && \
   awk '{print "{\\color{blue}" $5 "} & {\\color{blue}" $7 "} & {\\color{blue}" $9 "}"}' < norms.ref >> norms.tex ; then :
else
    exit 1
fi

if cat <<EOF | python ; then :
from check import *
from sys import *
if (Curve('norms',3,5) - Curve('norms.ref',3,5)).max() > 0. or\
   (Curve('norms',3,7) - Curve('norms.ref',3,7)).max() > 0. or\
   (Curve('norms',3,9) - Curve('norms.ref',3,9)).max() > 0. or\
   (Curve('norms',3,11) - Curve('norms.ref',3,11)).max() > 0.:
    exit(1)
if Curve('t',1,2).max() > 2e-5:
    exit(1)
EOF
else
   exit 1
fi