~ubuntu-branches/ubuntu/raring/rheolef/raring-proposed

« back to all changes in this revision

Viewing changes to doc/pexamples/helmholtz_band.sh

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito, Pierre Saramito, Sylvestre Ledru
  • Date: 2012-05-14 14:02:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120514140209-dzbdlidkotyflf9e
Tags: 6.1-1
[ Pierre Saramito ]
* New upstream release 6.1 (minor changes):
  - support arbitrarily polynomial order Pk
  - source code supports g++-4.7 (closes: #671996)

[ Sylvestre Ledru ]
* update of the watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# This file is part of Rheolef.
 
4
#
 
5
# Copyright (C) 2000-2009 Pierre Saramito 
 
6
#
 
7
# Rheolef is free software; you can redistribute it and/or modify
 
8
# it under the terms of the GNU General Public License as published by
 
9
# the Free Software Foundation; either version 2 of the License, or
 
10
# (at your option) any later version.
 
11
#
 
12
# Rheolef is distributed in the hope that it will be useful,
 
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
# GNU General Public License for more details.
 
16
#
 
17
# You should have received a copy of the GNU General Public License
 
18
# along with Rheolef; if not, write to the Free Software
 
19
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
20
#
 
21
# -------------------------------------------------------------------------
 
22
SRCDIR=${SRCDIR-"."}
 
23
TOP_SRCDIR=${TOP_SRCDIR-"../.."}
 
24
DATADIR=${TOP_SRCDIR}/nfem/ptst
 
25
BINDIR="../../nfem/pbin"
 
26
SBINDIR="../../nfem/sbin"
 
27
NPROC_MAX=${NPROC_MAX-"7"}
 
28
. "${TOP_SRCDIR}/config/loop_mpirun.sh"
 
29
 
 
30
status=0
 
31
 
 
32
# geo         err_h1
 
33
L="
 
34
mesh-2d-20     1.2
 
35
mesh-2d-41     1.0
 
36
mesh-3d-20     1.0
 
37
mesh-3d-21     1.0
 
38
"
 
39
 
 
40
run "$SBINDIR/mkgeo_grid_2d -v4 -t 20 -a -2 -b 2 -c -2 -d 2 2>/dev/null | $BINDIR/geo -upgrade - > mesh-2d-20.geo 2>/dev/null"
 
41
run "$SBINDIR/mkgeo_grid_2d -v4 -t 41 -a -2 -b 2 -c -2 -d 2 2>/dev/null | $BINDIR/geo -upgrade - > mesh-2d-41.geo 2>/dev/null"
 
42
run "$SBINDIR/mkgeo_grid_3d -v4 -T 20 -a -2 -b 2 -c -2 -d 2 -f -2 -g 2  2>/dev/null| $BINDIR/geo -upgrade - > mesh-3d-20.geo 2>/dev/null"
 
43
run "$SBINDIR/mkgeo_grid_3d -v4 -T 21 -a -2 -b 2 -c -2 -d 2 -f -2 -g 2  2>/dev/null| $BINDIR/geo -upgrade - > mesh-3d-21.geo 2>/dev/null"
 
44
 
 
45
while test "$L" != ""; do
 
46
  geo=`echo $L | awk '{print $1}'`
 
47
  L=`echo $L | awk '{for (i=2; i <= NF; i++) print $i}'`
 
48
  err=`echo $L | awk '{print $1}'`
 
49
  L=`echo $L | awk '{for (i=2; i <= NF; i++) print $i}'`
 
50
  loop_mpirun "./helmholtz_band $geo 2>/dev/null | ./helmholtz_band_error $err >/dev/null 2>/dev/null"
 
51
  if test $? -ne 0; then status=1; fi
 
52
done
 
53
 
 
54
run "rm -f mesh-2d-20.geo mesh-2d-41.geo mesh-3d-20.geo mesh-3d-21.geo"
 
55
 
 
56
exit $status