Commit 5a316609 authored by incardon's avatar incardon
Browse files

Fixing PETSC detection on ubuntu

parent 87ce8d68
...@@ -46,6 +46,12 @@ endif() ...@@ -46,6 +46,12 @@ endif()
find_package(Boost 1.68.0 COMPONENTS unit_test_framework iostreams program_options) find_package(Boost 1.68.0 COMPONENTS unit_test_framework iostreams program_options)
find_package(MPI) find_package(MPI)
if (MPI_FOUND)
set(ENV{CXX} mpic++)
set(ENV{CC} mpicc}
endif()
find_package(PETSc) find_package(PETSc)
find_package(HDF5) find_package(HDF5)
find_package(Eigen3) find_package(Eigen3)
......
...@@ -532,9 +532,9 @@ fi ...@@ -532,9 +532,9 @@ fi
cd build cd build
## remove enerything ## remove enerything
echo "Calling cmake ../. $conf_options" echo "Calling CXX=mpic++ CC=mpicc cmake ../. $conf_options"
rm ../error_code rm ../error_code
cmake ../. $conf_options CXX=mpic++ CC=mpicc cmake ../. $conf_options
if [ $? != 0 ]; then if [ $? != 0 ]; then
#ok something went wrong the install script analyze the return code to potentially fix the problem automatically #ok something went wrong the install script analyze the return code to potentially fix the problem automatically
# Read the error code and exit with that # Read the error code and exit with that
......
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