Skip to content
Snippets Groups Projects
Commit ba990f07 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing the installation of PETSC

parent 0bec11b1
No related branches found
No related tags found
No related merge requests found
......@@ -19,12 +19,15 @@ discover_os
##### if we are on osx we use gsed
ldflags_petsc=
if [ x"$platform" == x"osx" ]; then
sed_command=gsed
ldflags_petsc=LDFLAGS="-lcurl"
else
sed_command=sed
fi
####
## If some dependencies has been installed feed them to PETSC
......@@ -345,9 +348,16 @@ fi
tar -xf petsc-lite-3.7.6.tar.gz
cd petsc-3.7.6
echo "./configure COPTFLAGS="-O3 -g" CXXOPTFLAGS="-O3 -g" FOPTFLAGS="-O3 -g" --with-cxx-dialect=C++11 $petsc_openmp --with-mpi-dir=$mpi_dir $configure_options --with-mumps-lib="$MUMPS_extra_lib" --prefix=$1/PETSC --with-debugging=0"
echo "./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_options --with-mumps-lib="$MUMPS_extra_lib" --prefix=$1/PETSC --with-debugging=0"
python_command=python
# if python2 exist use python2
command -v python2 >/dev/null
if [ $? -eq 0 ]; then
python_command=python2
fi
python2 configure COPTFLAGS="-O3 -g" CXXOPTFLAGS="-O3 -g" FOPTFLAGS="-O3 -g" --with-cxx-dialect=C++11 $petsc_openmp --with-mpi-dir=$mpi_dir $configure_options --with-mumps-lib="$MUMPS_extra_lib" --prefix=$1/PETSC --with-debugging=0
$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_options --with-mumps-lib="$MUMPS_extra_lib" --prefix=$1/PETSC --with-debugging=0
make all test
make install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment