Skip to content
Snippets Groups Projects
Commit 1a505299 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

add OGS_USE_MPI cmake option and USE_MPI macro

parent 28d0c6c7
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,9 @@ OPTION(OGS_NO_EXTERNAL_LIBS "Builds OGS without any external dependencies." OFF)
OPTION(OGS_USE_LIS "Use Lis" OFF)
OPTION(OGS_USE_PETSC "Use PETSc routines" OFF)
# Paralleization
OPTION(OGS_USE_MPI "Use MPI" OFF)
# Eigen
OPTION(OGS_USE_EIGEN "Use EIGEN for local matrix and vector" ON)
OPTION(EIGEN_NO_DEBUG "Disables Eigen's assertions" ON)
......@@ -118,6 +121,11 @@ ENDIF()
IF(OGS_USE_PETSC)
ADD_DEFINITIONS(-DUSE_PETSC)
SET(OGS_USE_MPI ON)
ENDIF()
IF(OGS_USE_MPI)
ADD_DEFINITIONS(-DUSE_MPI)
ENDIF()
IF(OGS_USE_EIGEN)
......
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