make the build work if UMFPACK is not available

this was caused by the recent work on multisegmented wells. If UMFPack
is available, it compiled.
This commit is contained in:
Andreas Lauser
2017-10-24 19:12:39 +02:00
parent 35ff3aded3
commit 720dc636e8
2 changed files with 24 additions and 1 deletions

View File

@@ -24,14 +24,16 @@
#include <opm/common/ErrorMacros.hpp>
#include <dune/istl/solvers.hh>
#if HAVE_UMFPACK
#include <dune/istl/umfpack.hh>
#endif // HAVE_UMFPACK
#include <cmath>
namespace Opm {
namespace mswellhelpers
{
#if HAVE_UMFPACK
// obtain y = D^-1 * x with a direct solver
template <typename MatrixType, typename VectorType>
VectorType
@@ -60,6 +62,7 @@ namespace mswellhelpers
return y;
}
#endif // HAVE_UMFPACK