Skip to content
Snippets Groups Projects
Commit 9963d6a0 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix petsc configuration when pugs is built without mpi support

By now the choice is made that mpi is required when PETSc. This may
change in the future: it is not that important but would probably
require the use of #ifdef directives...
parent df510dff
No related branches found
No related tags found
1 merge request!62Fix petsc configuration when pugs is built without mpi support
This commit is part of merge request !62. Comments created here will be created in the context of that merge request.
...@@ -156,8 +156,14 @@ set(PUGS_ENABLE_PETSC AUTO CACHE STRING ...@@ -156,8 +156,14 @@ set(PUGS_ENABLE_PETSC AUTO CACHE STRING
"Choose one of: AUTO ON OFF") "Choose one of: AUTO ON OFF")
if (PUGS_ENABLE_PETSC MATCHES "^(AUTO|ON)$") if (PUGS_ENABLE_PETSC MATCHES "^(AUTO|ON)$")
if (MPI_FOUND)
# PETSc support is deactivated if MPI is not found
pkg_check_modules(PETSC PETSc) pkg_check_modules(PETSC PETSc)
else()
message(STATUS "PETSc support is deactivated since pugs will not be build with MPI support")
set(PETSC_FOUND FALSE)
unset(PUGS_HAS_PETSC)
endif()
set(PUGS_HAS_PETSC ${PETSC_FOUND}) set(PUGS_HAS_PETSC ${PETSC_FOUND})
else() else()
unset(PUGS_HAS_PETSC) unset(PUGS_HAS_PETSC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment