added Superlu regression tests
This commit is contained in:
parent
559bf7664c
commit
207fe9e21b
@ -45,7 +45,7 @@ shift
|
||||
|
||||
# Basic build and run tests
|
||||
mo="-j test"
|
||||
ro="-ams -ij -sstruct -struct"
|
||||
ro="-superlu"
|
||||
eo=""
|
||||
|
||||
co="--enable-debug --with-blas-lib=\\'-L/home/falgout2/codes/blas/BLAS-3.7.1 -lblas -lgfortran\\'"
|
||||
@ -57,7 +57,7 @@ co="--enable-debug --with-mli --with-superlu --with-superlu-include=/home/falgou
|
||||
./renametest.sh basic $output_dir/basic-superlu
|
||||
|
||||
co="--enable-debug --with-mli --with-superlu --with-superlu-include=/home/falgout2/codes/superlu/SuperLU_5.2.1/SRC --with-dsuperlu --with-dsuperlu-include=/home/falgout2/codes/superlu/SuperLU_DIST_5.2.1/SRC --with-blas-lib=\\'-L/home/falgout2/codes/blas/BLAS-3.7.1 -lblas -lgfortran\\' --with-dsuperlu-lib=\\'-L/home/falgout2/codes/superlu/SuperLU_DIST_5.2.1/lib -lsuperlu_dist -L/home/falgout2/codes/parmetis/parmetis-4.0.3/build/Linux-x86_64/libparmetis -lparmetis -L/home/falgout2/codes/parmetis/parmetis-4.0.3/build/Linux-x86_64/libmetis -lmetis\\'"
|
||||
./test.sh basic.sh $src_dir -co: $co -mo: $mo
|
||||
./test.sh basic.sh $src_dir -co: $co -mo: $mo -ro: $ro
|
||||
./renametest.sh basic $output_dir/basic-dsuperlu
|
||||
|
||||
# Echo to stderr all nonempty error files in $output_dir
|
||||
|
||||
30
src/test/TEST_superlu/sludist.jobs
Executable file
30
src/test/TEST_superlu/sludist.jobs
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
#BHEADER**********************************************************************
|
||||
# Copyright (c) 2008, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
# This file is part of HYPRE. See file COPYRIGHT for details.
|
||||
#
|
||||
# HYPRE is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU Lesser General Public License (as published by the Free
|
||||
# Software Foundation) version 2.1 dated February 1999.
|
||||
#
|
||||
# $Revision$
|
||||
#EHEADER**********************************************************************
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# ij: Run various cases using SuperLU_Dist as a coarse grid solve
|
||||
#=============================================================================
|
||||
|
||||
mpirun -np 1 ./ij -n 20 20 30 -dslu_th 2000 \
|
||||
> sludist.out.0
|
||||
|
||||
mpirun -np 4 ./ij -solver 1 -n 40 50 30 -P 2 2 1 -dslu_th 8000 -agg_nl 1 -tol 1.e-7 \
|
||||
> sludist.out.1
|
||||
|
||||
mpirun -np 8 ./ij -solver 3 -n 50 50 50 -P 2 2 2 -dslu_th 4000 -tol 1.e-7 \
|
||||
> sludist.out.2
|
||||
|
||||
|
||||
|
||||
|
||||
18
src/test/TEST_superlu/sludist.saved
Normal file
18
src/test/TEST_superlu/sludist.saved
Normal file
@ -0,0 +1,18 @@
|
||||
# Output file: sludist.out.0
|
||||
|
||||
|
||||
BoomerAMG Iterations = 11
|
||||
Final Relative Residual Norm = 3.002696e-09
|
||||
|
||||
# Output file: sludist.out.1
|
||||
|
||||
|
||||
Iterations = 13
|
||||
Final Relative Residual Norm = 3.172597e-08
|
||||
|
||||
# Output file: sludist.out.2
|
||||
|
||||
|
||||
GMRES Iterations = 8
|
||||
Final GMRES Relative Residual Norm = 5.950884e-08
|
||||
|
||||
48
src/test/TEST_superlu/sludist.sh
Executable file
48
src/test/TEST_superlu/sludist.sh
Executable file
@ -0,0 +1,48 @@
|
||||
#!/bin/sh
|
||||
#BHEADER**********************************************************************
|
||||
# Copyright (c) 2008, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
# This file is part of HYPRE. See file COPYRIGHT for details.
|
||||
#
|
||||
# HYPRE is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU Lesser General Public License (as published by the Free
|
||||
# Software Foundation) version 2.1 dated February 1999.
|
||||
#
|
||||
# $Revision$
|
||||
#EHEADER**********************************************************************
|
||||
|
||||
TNAME=`basename $0 .sh`
|
||||
|
||||
#=============================================================================
|
||||
# compare with baseline case
|
||||
#=============================================================================
|
||||
|
||||
FILES="\
|
||||
${TNAME}.out.0\
|
||||
${TNAME}.out.1\
|
||||
${TNAME}.out.2\
|
||||
"
|
||||
|
||||
for i in $FILES
|
||||
do
|
||||
echo "# Output file: $i"
|
||||
tail -5 $i
|
||||
done > ${TNAME}.out
|
||||
|
||||
# Make sure that the output files are reasonable
|
||||
CHECK_LINE="Complexity"
|
||||
OUT_COUNT=`grep "$CHECK_LINE" ${TNAME}.out | wc -l`
|
||||
SAVED_COUNT=`grep "$CHECK_LINE" ${TNAME}.saved | wc -l`
|
||||
if [ "$OUT_COUNT" != "$SAVED_COUNT" ]; then
|
||||
echo "Incorrect number of \"$CHECK_LINE\" lines in ${TNAME}.out" >&2
|
||||
fi
|
||||
|
||||
if [ -z $HYPRE_NO_SAVED ]; then
|
||||
diff -U3 -bI"time" ${TNAME}.saved ${TNAME}.out >&2
|
||||
fi
|
||||
|
||||
#=============================================================================
|
||||
# remove temporary files
|
||||
#=============================================================================
|
||||
|
||||
# rm -f ${TNAME}.testdata*
|
||||
Loading…
Reference in New Issue
Block a user