-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
438 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other | ||
# HYPRE Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
#============================================================================= | ||
# ij_assembly: Run default case | ||
#============================================================================= | ||
|
||
mpirun -np 1 ./ij_assembly > assembly.out.0 | ||
|
||
mpirun -np 2 ./ij_assembly > assembly.out.1 | ||
|
||
mpirun -np 3 ./ij_assembly > assembly.out.2 | ||
|
||
mpirun -np 7 ./ij_assembly > assembly.out.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other | ||
# HYPRE Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
TNAME=`basename $0 .sh` | ||
RTOL=$1 | ||
ATOL=$2 | ||
|
||
#============================================================================= | ||
# compare with baseline case | ||
#============================================================================= | ||
|
||
FILES="\ | ||
${TNAME}.out.0\ | ||
${TNAME}.out.1\ | ||
${TNAME}.out.2\ | ||
${TNAME}.out.3\ | ||
" | ||
|
||
for i in $FILES | ||
do | ||
echo "# Output file: $i" | ||
tail -1 $i | ||
done > ${TNAME}.out | ||
|
||
# Make sure that the output file is reasonable | ||
RUNCOUNT=`echo $FILES | wc -w` | ||
OUTCOUNT=`grep "error code" ${TNAME}.out | wc -l` | ||
if [ "$OUTCOUNT" != "$RUNCOUNT" ]; then | ||
echo "Incorrect number of runs in ${TNAME}.out" >&2 | ||
fi | ||
|
||
# Make sure that the output file has no errors | ||
for i in $FILES | ||
do | ||
echo "# Output file: $i" | ||
echo "Test error code = 0" | ||
done > ${TNAME}.testdata | ||
|
||
diff ${TNAME}.testdata ${TNAME}.out >&2 | ||
|
||
#============================================================================= | ||
# remove temporary files | ||
#============================================================================= | ||
|
||
rm -f ${TNAME}.testdata |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.