~ubuntu-branches/ubuntu/trusty/rheolef/trusty

« back to all changes in this revision

Viewing changes to nfem/ptst/interpolate_dom_tst.sh

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito
  • Date: 2012-04-06 09:12:21 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120406091221-m58me99p1nxqui49
Tags: 6.0-1
* New upstream release 6.0 (major changes):
  - massively distributed and parallel support
  - full FEM characteristic method (Lagrange-Gakerkin method) support
  - enhanced users documentation 
  - source code supports g++-4.7 (closes: #667356)
* debian/control: dependencies for MPI distributed solvers added
* debian/rules: build commands simplified
* debian/librheolef-dev.install: man1/* to man9/* added
* debian/changelog: package description rewritted (closes: #661689)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
status=0
31
31
 
 
32
tmp="/tmp/tmp$$.field"
 
33
 
 
34
#-------------------
 
35
# domain "right"
 
36
#-------------------
32
37
L="
33
38
line-dom-v2
34
 
carre-100-dom-v2
35
39
carre-bamg-v2
 
40
carre-bamg-q-dom-v2
 
41
carre-q-10-dom-v2
36
42
cube-10-dom-v2
37
 
cube-gmsh-v2
38
 
"
39
 
for geo in $L; do
40
 
  for Pk in P1 P0 P1d; do
41
 
    loop_mpirun "./interpolate_dom_tst ${SRCDIR}/$geo $Pk right 1e-10 2>/dev/null | diff -w -B ${SRCDIR}/interpolate_dom-$geo-right-$Pk.field - >/dev/null"
42
 
    if test $? -ne 0; then status=1; fi
43
 
  done
44
 
done
 
43
cube-H-6-dom-v2
 
44
cube-P-5-dom-v2
 
45
my_cube_PH-5-v2
 
46
my_cube_TP-5-v2
 
47
my_cube_TPH-5-v2
 
48
"
 
49
for geo in $L; do
 
50
  for Pk in P1 P2 P3 P0 P1d; do
 
51
    loop_mpirun "./interpolate_dom_tst ${SRCDIR}/$geo $Pk right 1e-10 2>/dev/null > $tmp && diff -w -B ${SRCDIR}/interpolate_dom-$geo-right-$Pk.field $tmp >/dev/null"
 
52
    if test $? -ne 0; then status=1; fi
 
53
  done
 
54
done
 
55
#-------------------
 
56
# domain "boundary"
 
57
#-------------------
 
58
L="
 
59
circle_p3-v2
 
60
circle_p5-v2
 
61
sphere_p2-v2
 
62
sphere_p3-v2
 
63
"
 
64
for geo in $L; do
 
65
  for Pk in P1 P2 P3 P0 P1d; do
 
66
    loop_mpirun "./interpolate_dom_tst ${SRCDIR}/$geo $Pk boundary 1e-10 2>/dev/null > $tmp && diff -w -B ${SRCDIR}/interpolate_dom-$geo-boundary-$Pk.field $tmp >/dev/null"
 
67
    if test $? -ne 0; then status=1; fi
 
68
  done
 
69
done
 
70
 
 
71
run "rm -f $tmp"
45
72
 
46
73
exit $status