|
59 | 59 | mpi_dir=$(dirname "$(dirname "$(which mpic++)")") |
60 | 60 | fi |
61 | 61 |
|
| 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 " |
62 | 63 |
|
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 " |
100 | 65 | test_configure_options |
101 | 66 |
|
102 | 67 | 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 " |
105 | 70 | fi |
106 | 71 |
|
107 | 72 | rm -rf petsc-3.23.7 |
|
0 commit comments