Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chaofan Chen
ogs
Commits
344bda84
Commit
344bda84
authored
3 years ago
by
joergbuchwald
Browse files
Options
Downloads
Patches
Plain Diff
add preprocessor directives for Eigen version
parent
b7df40a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MathLib/LinAlg/Eigen/EigenLinearSolver.cpp
+18
-0
18 additions, 0 deletions
MathLib/LinAlg/Eigen/EigenLinearSolver.cpp
with
18 additions
and
0 deletions
MathLib/LinAlg/Eigen/EigenLinearSolver.cpp
+
18
−
0
View file @
344bda84
...
@@ -386,7 +386,13 @@ std::unique_ptr<EigenLinearSolverBase> createIterativeSolver(
...
@@ -386,7 +386,13 @@ std::unique_ptr<EigenLinearSolverBase> createIterativeSolver(
case
EigenOption
::
SolverType
::
BiCGSTABL
:
case
EigenOption
::
SolverType
::
BiCGSTABL
:
{
{
#ifdef USE_EIGEN_UNSUPPORTED
#ifdef USE_EIGEN_UNSUPPORTED
#if EIGEN_VERSION_AT_LEAST(3, 4, 90)
return
createIterativeSolver
<
Eigen
::
BiCGSTABL
>
(
precon_type
);
return
createIterativeSolver
<
Eigen
::
BiCGSTABL
>
(
precon_type
);
#else
OGS_FATAL
(
"BiCGSTABL requires at least Eigen version 3.4.90"
);
#endif
#else
#else
OGS_FATAL
(
OGS_FATAL
(
"The code is not compiled with the Eigen unsupported modules. "
"The code is not compiled with the Eigen unsupported modules. "
...
@@ -410,7 +416,13 @@ std::unique_ptr<EigenLinearSolverBase> createIterativeSolver(
...
@@ -410,7 +416,13 @@ std::unique_ptr<EigenLinearSolverBase> createIterativeSolver(
case
EigenOption
::
SolverType
::
IDRS
:
case
EigenOption
::
SolverType
::
IDRS
:
{
{
#ifdef USE_EIGEN_UNSUPPORTED
#ifdef USE_EIGEN_UNSUPPORTED
#if EIGEN_VERSION_AT_LEAST(3, 4, 90)
return
createIterativeSolver
<
Eigen
::
IDRS
>
(
precon_type
);
return
createIterativeSolver
<
Eigen
::
IDRS
>
(
precon_type
);
#else
OGS_FATAL
(
"IDRS requires at least Eigen version 3.4.90"
);
#endif
#else
#else
OGS_FATAL
(
OGS_FATAL
(
"The code is not compiled with the Eigen unsupported modules. "
"The code is not compiled with the Eigen unsupported modules. "
...
@@ -420,7 +432,13 @@ std::unique_ptr<EigenLinearSolverBase> createIterativeSolver(
...
@@ -420,7 +432,13 @@ std::unique_ptr<EigenLinearSolverBase> createIterativeSolver(
case
EigenOption
::
SolverType
::
IDRSTABL
:
case
EigenOption
::
SolverType
::
IDRSTABL
:
{
{
#ifdef USE_EIGEN_UNSUPPORTED
#ifdef USE_EIGEN_UNSUPPORTED
#if EIGEN_VERSION_AT_LEAST(3, 4, 90)
return
createIterativeSolver
<
Eigen
::
IDRSTABL
>
(
precon_type
);
return
createIterativeSolver
<
Eigen
::
IDRSTABL
>
(
precon_type
);
#else
OGS_FATAL
(
"IDRSTABL requires at least Eigen version 3.4.90"
);
#endif
#else
#else
OGS_FATAL
(
OGS_FATAL
(
"The code is not compiled with the Eigen unsupported modules. "
"The code is not compiled with the Eigen unsupported modules. "
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment