Skip to content

Commit a2b64d3

Browse files
committed
Perform PETSC auxillary libs support check in one go
1 parent b12b477 commit a2b64d3

File tree

1 file changed

+4
-39
lines changed

1 file changed

+4
-39
lines changed

script/install_PETSC.sh

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -59,49 +59,14 @@ else
5959
mpi_dir=$(dirname "$(dirname "$(which mpic++)")")
6060
fi
6161

62+
configure_options="$configure_options --with-blas-lib=$1/OPENBLAS/lib/libopenblas.a --with-lapack-lib=$1/OPENBLAS/lib/libopenblas.a --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
6263

63-
configure_options="$configure_options --with-blas-lib=$1/OPENBLAS/lib/libopenblas.a --with-lapack-lib=$1/OPENBLAS/lib/libopenblas.a"
64-
65-
echo "Testing if PETSC work with SUITESPARSE"
66-
configure_options2="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
67-
test_configure_options
68-
69-
if [ $error -eq 0 ]; then
70-
echo "SUITESPARSE work with PETSC"
71-
configure_options="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
72-
fi
73-
74-
configure_options2="$configure_options --download-scalapack"
75-
test_configure_options
76-
77-
if [ $error -eq 0 ]; then
78-
echo "SCALAPACK work with PETSC"
79-
configure_options="$configure_options --download-scalapack "
80-
fi
81-
82-
configure_options2="$configure_options --download-mumps"
83-
test_configure_options
84-
85-
if [ $error -eq 0 ]; then
86-
echo "MUMPS work with PETSC"
87-
configure_options="$configure_options --download-mumps"
88-
fi
89-
90-
echo "Testing if PETSC work with SUPERLU"
91-
configure_options2="$configure_options --download-superlu_dist "
92-
test_configure_options
93-
94-
if [ $error -eq 0 ]; then
95-
echo "SUPERLU work with PETSC"
96-
configure_options="$configure_options --download-superlu_dist "
97-
fi
98-
99-
configure_options2="$configure_options --download-hypre"
64+
configure_options2="$configure_options --download-scalapack --download-mumps --download-superlu_dist --download-hypre "
10065
test_configure_options
10166

10267
if [ $error -eq 0 ]; then
103-
echo "HYPRE work with PETSC"
104-
configure_options="$configure_options --download-hypre"
68+
echo "SCALAPACK, MUMPS, SUPERLU, HYPRE work with PETSC"
69+
configure_options="$configure_options --download-scalapack --download-mumps --download-superlu_dist --download-hypre "
10570
fi
10671

10772
rm -rf petsc-3.23.7

0 commit comments

Comments
 (0)