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

« back to all changes in this revision

Viewing changes to nfem/tst/form_generic_tst.sh

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2010-06-12 09:08:59 UTC
  • Revision ID: james.westby@ubuntu.com-20100612090859-8gpm2gc7j3ab43et
Tags: upstream-5.89
ImportĀ upstreamĀ versionĀ 5.89

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-"../../../rheolef/nfem/tst"}
 
23
 
 
24
RHEOLEF_BASIS_PATH=${RHEOLEF_BASIS_PATH-"../basis"}
 
25
RHEOLEF_NUMBERING_PATH=${RHEOLEF_NUMBERING_PATH-"../basis"}
 
26
RHEOLEF_FORM_ELEMENT_PATH=${RHEOLEF_FORM_ELEMENT_PATH-"../form_element"}
 
27
export RHEOLEF_BASIS_PATH
 
28
export RHEOLEF_NUMBERING_PATH
 
29
export RHEOLEF_FORM_ELEMENT_PATH
 
30
 
 
31
FORMS="2D_D div_div"
 
32
APPROXS="P1 P2"
 
33
 
 
34
status=0
 
35
command="../bin/mkgeo_grid_2d 10 10 > square.geo"
 
36
echo "      $command"
 
37
eval $command 2>/dev/null
 
38
 
 
39
 
 
40
for form in $FORMS; do
 
41
  for approx in $APPROXS; do
 
42
     command="./form_generic_tst square -approx $approx -form $form"
 
43
     echo "      $command"
 
44
     eval $command >/dev/null 2>/dev/null
 
45
     if test $? -ne 0; then status=1; echo "        => *NO*"; fi
 
46
  done
 
47
done
 
48
 
 
49
command="/bin/rm -f square.geo"
 
50
echo "      $command"
 
51
eval $command
 
52
exit $status
 
53