Skip to content
Snippets Groups Projects
Commit 62b1e1d2 authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[CMake] Added option OGS_EIGEN_INITIALIZE_MATRICES_BY_NAN.

parent 171f3112
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,7 @@ option(OGS_USE_PETSC "Use PETSc routines" OFF) ...@@ -87,6 +87,7 @@ option(OGS_USE_PETSC "Use PETSc routines" OFF)
# Eigen # Eigen
option(OGS_USE_EIGEN "Use Eigen linear solver" ON) option(OGS_USE_EIGEN "Use Eigen linear solver" ON)
option(OGS_USE_EIGEN_UNSUPPORTED "Use Eigen unsupported modules" ON) option(OGS_USE_EIGEN_UNSUPPORTED "Use Eigen unsupported modules" ON)
option(OGS_EIGEN_INITIALIZE_MATRICES_BY_NAN "" ON)
option(EIGEN_NO_DEBUG "Disables Eigen's assertions" OFF) option(EIGEN_NO_DEBUG "Disables Eigen's assertions" OFF)
set(OGS_EIGEN_DYNAMIC_SHAPE_MATRICES "Default" CACHE STRING "Use dynamically allocated shape matrices") set(OGS_EIGEN_DYNAMIC_SHAPE_MATRICES "Default" CACHE STRING "Use dynamically allocated shape matrices")
...@@ -200,6 +201,9 @@ if(OGS_USE_EIGEN) ...@@ -200,6 +201,9 @@ if(OGS_USE_EIGEN)
if(OGS_USE_EIGEN_UNSUPPORTED) if(OGS_USE_EIGEN_UNSUPPORTED)
add_definitions(-DUSE_EIGEN_UNSUPPORTED) add_definitions(-DUSE_EIGEN_UNSUPPORTED)
endif() endif()
if(OGS_EIGEN_INITIALIZE_MATRICES_BY_NAN)
add_definitions(-DEIGEN_INITIALIZE_MATRICES_BY_NAN)
endif()
endif() endif()
if(MSVC AND OGS_32_BIT) if(MSVC AND OGS_32_BIT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment