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

« back to all changes in this revision

Viewing changes to doc/pexamples/neumann.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:
21
21
# -------------------------------------------------------------------------
22
22
SRCDIR=${SRCDIR-"."}
23
23
TOP_SRCDIR=${TOP_SRCDIR-"../.."}
 
24
DATADIR=$TOP_SRCDIR/nfem/ptst
24
25
NPROC_MAX=${NPROC_MAX-"3"}
25
26
. "${TOP_SRCDIR}/config/loop_mpirun.sh"
26
27
 
27
28
status=0
28
29
 
 
30
# geo                   err_P1  err_P2  err_P3
29
31
L="
30
 
line-20-bdry
31
 
square-10-bdry
32
 
cube-5-bdry
33
 
"
34
 
EXPECT="
35
 
1e-6
36
 
4e-4
37
 
2e-3
38
 
"
39
 
 
40
 
for geo in $L; do
41
 
  err=`echo $EXPECT | awk '{print $1}'`
42
 
  EXPECT=`echo $EXPECT | awk '{for (i=2; i <= NF; i++) print $i}'`
43
 
  loop_mpirun "./neumann $SRCDIR/$geo P1 2>/dev/null | ./neumann-check $err 2>/dev/null >/dev/null"
44
 
  if test $? -ne 0; then status=1; fi
 
32
line-bdry-v2            8e-3    2e-5    3e-6
 
33
carre-bamg-v2           4e-2    6e-4    4e-5
 
34
carre-bamg-q-dom-v2     7e-3    6e-5    2e-6
 
35
carre-tq-10-dom-v2      4e-2    4e-4    3e-5
 
36
cube-dom-v2             4e-1    4e-2    5e-3
 
37
cube-H-6-dom-v2         3e-2    2e-3    5e-5
 
38
cube-P-5-dom-v2         2e-1    6e-3    6e-4
 
39
my_cube_TP-5-v2         3e-1    2e-2    3e-3    
 
40
my_cube_PH-5-v2         7e-2    8e-3    3e-4
 
41
my_cube_TPH-5-v2        2e-1    2e-2    5e-3
 
42
"
 
43
while test "$L" != ""; do
 
44
  geo=`echo $L | awk '{print $1}'`
 
45
  L=`echo $L | awk '{for (i=2; i <= NF; i++) print $i}'`
 
46
  for Pk in P1 P2 P3; do
 
47
    err=`echo $L | awk '{print $1}'`
 
48
    L=`echo $L | awk '{for (i=2; i <= NF; i++) print $i}'`
 
49
    loop_mpirun "./neumann $DATADIR/$geo $Pk 2>/dev/null | RHEOPATH=$DATADIR $RUN ./cosinusprod_error $err 2>/dev/null >/dev/null"
 
50
    if test $? -ne 0; then status=1; fi
 
51
  done
45
52
done
46
53
 
47
54
exit $status