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.
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.
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.
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.
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
8
# terms of the GNU Lesser General Public License (as published by the Free
9
# Software Foundation) version 2.1 dated February 1999.
26
12
#EHEADER**********************************************************************
28
18
TNAME=`basename $0 .sh`
30
20
#=============================================================================
59
49
done > ${TNAME}.out
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
61
59
if [ -z $HYPRE_NO_SAVED ]; then
62
60
diff -U3 -bI"time" ${TNAME}.saved ${TNAME}.out >&2