From eebda930bf8c3fa6ae2bf0a94be9b647171375cc Mon Sep 17 00:00:00 2001 From: "Dmitry Yu. Naumov" <github@naumov.de> Date: Wed, 15 Jul 2015 01:58:19 +0000 Subject: [PATCH] [A] Add Eigen global setup to NumericsConfig. --- Applications/CLI/NumericsConfig.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Applications/CLI/NumericsConfig.h b/Applications/CLI/NumericsConfig.h index 1a897814994..029fa5e3241 100644 --- a/Applications/CLI/NumericsConfig.h +++ b/Applications/CLI/NumericsConfig.h @@ -38,6 +38,18 @@ namespace detail } #else // USE_LIS +#ifdef OGS_USE_EIGEN + #include "MathLib/LinAlg/Eigen/EigenVector.h" + #include "MathLib/LinAlg/Eigen/EigenMatrix.h" + #include "MathLib/LinAlg/Eigen/EigenLinearSolver.h" +namespace detail +{ + using GlobalVectorType = MathLib::EigenVector; + using GlobalMatrixType = MathLib::EigenMatrix; + + using LinearSolverType = MathLib::EigenLinearSolver; +} +#else // OGS_USE_EIGEN #include "MathLib/LinAlg/Dense/DenseVector.h" #include "MathLib/LinAlg/Dense/GlobalDenseMatrix.h" #include "MathLib/LinAlg/Solvers/GaussAlgorithm.h" @@ -51,6 +63,7 @@ namespace detail } #endif // USE_LIS +#endif // OGS_USE_EIGEN // -- GitLab