3
# This file is part of Rheolef.
5
# Copyright (C) 2000-2009 Pierre Saramito
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.
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.
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
21
# -------------------------------------------------------------------------
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"
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"
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
54
run "rm -f mesh-2d-20.geo mesh-2d-41.geo mesh-3d-20.geo mesh-3d-21.geo"