Merge pull request #2857 from blattms/fix-nvcc-umfpack-compilation

Fixes compilation of CUDA.
This commit is contained in:
Markus Blatt 2020-10-15 11:50:28 +02:00 committed by GitHub
commit 320cf46a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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