mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Check for HAVE_UMFPACK in LinearSolverFactory
Check for the right preprocessor define to enable umfpack support. Matches the directive set in config.h
This commit is contained in:
1 parent
52752ea1e4
commit
84b0c8bc59
1 file changed
+3
-3
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include <opm/core/linalg/LinearSolverFactory.hpp>
|
#include <opm/core/linalg/LinearSolverFactory.hpp>
|
||||||
|
|
||||||
#if HAVE_SUITESPARSE_UMFPACK_H
|
#if HAVE_UMFPACK
|
||||||
#include <opm/core/linalg/LinearSolverUmfpack.hpp>
|
#include <opm/core/linalg/LinearSolverUmfpack.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ namespace Opm
|
|||||||
|
|
||||||
LinearSolverFactory::LinearSolverFactory()
|
LinearSolverFactory::LinearSolverFactory()
|
||||||
{
|
{
|
||||||
#if HAVE_SUITESPARSE_UMFPACK_H
|
#if HAVE_UMFPACK
|
||||||
solver_.reset(new LinearSolverUmfpack);
|
solver_.reset(new LinearSolverUmfpack);
|
||||||
#elif HAVE_DUNE_ISTL
|
#elif HAVE_DUNE_ISTL
|
||||||
solver_.reset(new LinearSolverIstl);
|
solver_.reset(new LinearSolverIstl);
|
||||||
@@ -65,7 +65,7 @@ namespace Opm
|
|||||||
param.getDefault<std::string>("linsolver", "umfpack");
|
param.getDefault<std::string>("linsolver", "umfpack");
|
||||||
|
|
||||||
if (ls == "umfpack") {
|
if (ls == "umfpack") {
|
||||||
#if HAVE_SUITESPARSE_UMFPACK_H
|
#if HAVE_UMFPACK
|
||||||
solver_.reset(new LinearSolverUmfpack);
|
solver_.reset(new LinearSolverUmfpack);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user