From f54c74db0637640f5fb224fab243b294cd034f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Kvalsvik?= Date: Wed, 18 May 2016 10:29:57 +0200 Subject: [PATCH] Check for HAVE_UMFPACK in LinearSolverFactory Check for the right preprocessor define to enable umfpack support. Matches the directive set in config.h --- opm/core/linalg/LinearSolverFactory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/core/linalg/LinearSolverFactory.cpp b/opm/core/linalg/LinearSolverFactory.cpp index d2bd3120..18204cc9 100644 --- a/opm/core/linalg/LinearSolverFactory.cpp +++ b/opm/core/linalg/LinearSolverFactory.cpp @@ -23,7 +23,7 @@ #include -#if HAVE_SUITESPARSE_UMFPACK_H +#if HAVE_UMFPACK #include #endif @@ -45,7 +45,7 @@ namespace Opm LinearSolverFactory::LinearSolverFactory() { -#if HAVE_SUITESPARSE_UMFPACK_H +#if HAVE_UMFPACK solver_.reset(new LinearSolverUmfpack); #elif HAVE_DUNE_ISTL solver_.reset(new LinearSolverIstl); @@ -65,7 +65,7 @@ namespace Opm param.getDefault("linsolver", "umfpack"); if (ls == "umfpack") { -#if HAVE_SUITESPARSE_UMFPACK_H +#if HAVE_UMFPACK solver_.reset(new LinearSolverUmfpack); #endif }