mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2857 from blattms/fix-nvcc-umfpack-compilation
Fixes compilation of CUDA.
This commit is contained in:
commit
320cf46a5f
@ -26,7 +26,9 @@
|
||||
#include <cuda_runtime.h>
|
||||
#endif
|
||||
|
||||
#include <dune/istl/umfpack.hh>
|
||||
#if HAVE_SUITESPARSE_UMFPACK
|
||||
#include<umfpack.h>
|
||||
#endif
|
||||
#include <dune/common/version.hh>
|
||||
|
||||
namespace Opm
|
||||
@ -79,8 +81,7 @@ private:
|
||||
public:
|
||||
|
||||
#if DUNE_VERSION_NEWER(DUNE_ISTL, 2, 7)
|
||||
using UMFPackIndex =
|
||||
typename Dune::UMFPack<Dune::BCRSMatrix<Dune::FieldMatrix<double,1,1>>>::UMFPackMatrix::Index;
|
||||
using UMFPackIndex = SuiteSparse_long;
|
||||
#else
|
||||
using UMFPackIndex = int;
|
||||
#endif
|
||||
|
@ -31,7 +31,9 @@
|
||||
#include <vector>
|
||||
|
||||
#include <opm/simulators/linalg/bda/MultisegmentWellContribution.hpp>
|
||||
#include <dune/istl/umfpack.hh>
|
||||
#if HAVE_SUITESPARSE_UMFPACK
|
||||
#include<umfpack.h>
|
||||
#endif
|
||||
#include <dune/common/version.hh>
|
||||
|
||||
namespace Opm
|
||||
@ -58,8 +60,7 @@ class WellContributions
|
||||
{
|
||||
public:
|
||||
#if DUNE_VERSION_NEWER(DUNE_ISTL, 2, 7)
|
||||
using UMFPackIndex =
|
||||
typename Dune::UMFPack<Dune::BCRSMatrix<Dune::FieldMatrix<double,1,1>>>::UMFPackMatrix::Index;
|
||||
using UMFPackIndex = SuiteSparse_long;
|
||||
#else
|
||||
using UMFPackIndex = int;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user