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

« back to all changes in this revision

Viewing changes to doc/pexamples/dirichlet.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
GEODIR="${TOP_SRCDIR}/nfem/ptst"
 
25
ROUNDER="../../nfem/pbin/field - -field -round"
24
26
NPROC_MAX=${NPROC_MAX-"8"}
25
27
. "${TOP_SRCDIR}/config/loop_mpirun.sh"
26
28
 
27
29
status=0
28
30
 
29
31
L="
30
 
line-1-bdry
31
 
line-2-bdry
32
 
line-3-bdry
33
 
line-20-bdry
34
 
square-10-bdry
35
 
cube-5-bdry
 
32
$GEODIR/line-1-bdry
 
33
$GEODIR/line-2-bdry
 
34
$GEODIR/line-3-bdry
 
35
$GEODIR/line-20-bdry
 
36
$SRCDIR/square-10-bdry
 
37
$SRCDIR/cube-5-bdry
 
38
$GEODIR/cube-P-5-dom-v2
 
39
$GEODIR/my_cube_PH-5-v2
 
40
$GEODIR/my_cube_TP-5-v2
 
41
$GEODIR/my_cube_TPH-5-v2
36
42
"
37
43
 
38
 
for geo in $L; do
39
 
  loop_mpirun "./dirichlet ${SRCDIR}/$geo P1 2>/dev/null | ./rounder 2>/dev/null | diff -w -B $SRCDIR/dirichlet-$geo-P1.field - >/dev/null"
 
44
for fullgeo in $L; do
 
45
 geo=`basename $fullgeo`
 
46
 dir=`dirname $fullgeo`
 
47
 for Pk in P1 P2 P3; do
 
48
   loop_mpirun "./dirichlet $fullgeo $Pk 2>/dev/null | RHEOPATH=${dir} $ROUNDER 1e-7 2>/dev/null | diff -w -B $SRCDIR/dirichlet-$geo-$Pk.field - >/dev/null"
40
49
  if test $? -ne 0; then status=1; fi
 
50
 done
41
51
done
42
52
 
43
53
exit $status