Skip to content

Commit

Permalink
Merge branch 'fix-eigen-unsupported-build' into 'master'
Browse files Browse the repository at this point in the history
Fix build if not using unsupported Eigen parts

Closes #3431

See merge request ogs/ogs!4746
  • Loading branch information
bilke committed Sep 28, 2023
2 parents 2e68652 + 8602b8c commit 68cb163
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MathLib/LinAlg/Eigen/EigenLinearSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ class EigenLinearSolverBase

auto const success = solveImpl(b, x, opt);

#ifdef USE_EIGEN_UNSUPPORTED
if (scaling_)
{
x = scaling_->RightScaling().cwiseProduct(x);
}
#endif

return success;
}
Expand Down

0 comments on commit 68cb163

Please sign in to comment.