~ubuntu-branches/ubuntu/karmic/hypre/karmic

« back to all changes in this revision

Viewing changes to src/test/TEST_sstruct/sstruct_struct.sh

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2009-03-20 11:40:12 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090320114012-132h6ok9w2r6o609
Tags: 2.4.0b-2
Rebuild against new openmpi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh 
 
1
#!/bin/sh
2
2
#BHEADER**********************************************************************
3
 
# Copyright (c) 2006   The Regents of the University of California.
 
3
# Copyright (c) 2008,  Lawrence Livermore National Security, LLC.
4
4
# Produced at the Lawrence Livermore National Laboratory.
5
 
# Written by the HYPRE team. UCRL-CODE-222953.
6
 
# All rights reserved.
7
 
#
8
 
# This file is part of HYPRE (see http://www.llnl.gov/CASC/hypre/).
9
 
# Please see the COPYRIGHT_and_LICENSE file for the copyright notice, 
10
 
# disclaimer, contact information and the GNU Lesser General Public License.
 
5
# This file is part of HYPRE.  See file COPYRIGHT for details.
11
6
#
12
7
# HYPRE is free software; you can redistribute it and/or modify it under the
13
 
# terms of the GNU General Public License (as published by the Free Software 
14
 
# Foundation) version 2.1 dated February 1999.
15
 
#
16
 
# HYPRE is distributed in the hope that it will be useful, but WITHOUT ANY 
17
 
# WARRANTY; without even the IMPLIED WARRANTY OF MERCHANTABILITY or FITNESS 
18
 
# FOR A PARTICULAR PURPOSE.  See the terms and conditions of the GNU General
19
 
# Public License for more details.
20
 
#
21
 
# You should have received a copy of the GNU Lesser General Public License
22
 
# along with this program; if not, write to the Free Software Foundation,
23
 
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
 
#
25
 
# $Revision: 1.7 $
 
8
# terms of the GNU Lesser General Public License (as published by the Free
 
9
# Software Foundation) version 2.1 dated February 1999.
 
10
#
 
11
# $Revision: 1.10 $
26
12
#EHEADER**********************************************************************
27
13
 
 
14
 
 
15
 
 
16
 
 
17
 
28
18
TNAME=`basename $0 .sh`
29
19
 
30
20
#=============================================================================
58
48
  tail -3 $i
59
49
done > ${TNAME}.out
60
50
 
 
51
# Make sure that the output files are reasonable
 
52
CHECK_LINE="Iterations"
 
53
OUT_COUNT=`grep "$CHECK_LINE" ${TNAME}.out | wc -l`
 
54
SAVED_COUNT=`grep "$CHECK_LINE" ${TNAME}.saved | wc -l`
 
55
if [ "$OUT_COUNT" != "$SAVED_COUNT" ]; then
 
56
   echo "Incorrect number of \"$CHECK_LINE\" lines in ${TNAME}.out" >&2
 
57
fi
 
58
 
61
59
if [ -z $HYPRE_NO_SAVED ]; then
62
60
   diff -U3 -bI"time" ${TNAME}.saved ${TNAME}.out >&2
63
61
fi