mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user