Commit bf0aae51 authored by incardon's avatar incardon
Browse files

Fixing install PETSC we SUITESparse does not work

parent c0fbef1f
......@@ -21,6 +21,7 @@ discover_os
function test_configure_options() {
cd petsc-3.10.2
$python_command ./configure COPTFLAGS="-O3 -g" CXXOPTFLAGS="-O3 -g" FOPTFLAGS="-O3 -g" $ldflags_petsc --with-cxx-dialect=C++11 $petsc_openmp --with-mpi-dir=$mpi_dir $configure_options2 --with-debugging=0
error=$?
cd ..
}
......@@ -100,9 +101,9 @@ fi
#### OK here we check if we can configure work with SUITESPARSE
echo "Testing if PETSC work with SUITESPARSE"
configure_options2="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
test_configure_options
test_configure_options
if [ $? -eq 0 ]; then
if [ $error -eq 0 ]; then
configure_options="$configure_options --with-suitesparse=yes --with-suitesparse-dir=$1/SUITESPARSE "
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment