diff --git a/opm/core/linalg/LinearSolverFactory.cpp b/opm/core/linalg/LinearSolverFactory.cpp index 18204cc9f..d2bd31204 100644 --- a/opm/core/linalg/LinearSolverFactory.cpp +++ b/opm/core/linalg/LinearSolverFactory.cpp @@ -23,7 +23,7 @@ #include -#if HAVE_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK_H #include #endif @@ -45,7 +45,7 @@ namespace Opm LinearSolverFactory::LinearSolverFactory() { -#if HAVE_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK_H 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_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK_H solver_.reset(new LinearSolverUmfpack); #endif }