diff --git a/opm/models/discretization/common/fvbaseproblem.hh b/opm/models/discretization/common/fvbaseproblem.hh index 21667b4caa..5ee7b1c811 100644 --- a/opm/models/discretization/common/fvbaseproblem.hh +++ b/opm/models/discretization/common/fvbaseproblem.hh @@ -288,13 +288,8 @@ public: */ void gridChanged() { -#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 8) elementMapper_.update(gridView_); vertexMapper_.update(gridView_); -#else - elementMapper_.update(); - vertexMapper_.update(); -#endif if (enableVtkOutput_()) defaultVtkWriter_->gridChanged(); diff --git a/opm/models/io/vtkmultiwriter.hh b/opm/models/io/vtkmultiwriter.hh index 694557d060..f13e57d055 100644 --- a/opm/models/io/vtkmultiwriter.hh +++ b/opm/models/io/vtkmultiwriter.hh @@ -164,13 +164,8 @@ public: */ void gridChanged() { -#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 8) elementMapper_.update(gridView_); vertexMapper_.update(gridView_); -#else - elementMapper_.update(); - vertexMapper_.update(); -#endif } /*! diff --git a/opm/models/parallel/gridcommhandles.hh b/opm/models/parallel/gridcommhandles.hh index 5596322562..f4aaaea55e 100644 --- a/opm/models/parallel/gridcommhandles.hh +++ b/opm/models/parallel/gridcommhandles.hh @@ -56,11 +56,7 @@ public: return codim == commCodim; } -#if DUNE_VERSION_LT(DUNE_GRID, 2, 8) - bool fixedsize(int, int) const -#else bool fixedSize(int, int) const -#endif { // for each DOF we communicate a single value which has a // fixed size @@ -120,11 +116,7 @@ public: return codim == commCodim; } -#if DUNE_VERSION_LT(DUNE_GRID, 2, 8) - bool fixedsize(int, int) const -#else bool fixedSize(int, int) const -#endif { // for each DOF we communicate a single value which has a // fixed size @@ -179,11 +171,7 @@ public: return codim == commCodim; } -#if DUNE_VERSION_LT(DUNE_GRID, 2, 8) - bool fixedsize(int, int) const -#else bool fixedSize(int, int) const -#endif { // for each DOF we communicate a single value which has a // fixed size @@ -240,11 +228,7 @@ public: return codim == commCodim; } -#if DUNE_VERSION_LT(DUNE_GRID, 2, 8) - bool fixedsize(int, int) const -#else bool fixedSize(int, int) const -#endif { // for each DOF we communicate a single value which has a // fixed size diff --git a/opm/simulators/flow/CollectDataOnIORank.hpp b/opm/simulators/flow/CollectDataOnIORank.hpp index f0413b45bb..c980162259 100644 --- a/opm/simulators/flow/CollectDataOnIORank.hpp +++ b/opm/simulators/flow/CollectDataOnIORank.hpp @@ -55,7 +55,7 @@ template class CollectDataOnIORank { public: - using CollectiveCommunication = typename Grid::CollectiveCommunication; + using CollectiveCommunication = typename Grid::Communication; using P2PCommunicatorType = Dune::Point2PointCommunicator; using IndexMapType = std::vector; using IndexMapStorageType = std::vector; diff --git a/opm/simulators/linalg/ExtraSmoothers.hpp b/opm/simulators/linalg/ExtraSmoothers.hpp index 2e8054a939..013257bb79 100644 --- a/opm/simulators/linalg/ExtraSmoothers.hpp +++ b/opm/simulators/linalg/ExtraSmoothers.hpp @@ -20,7 +20,6 @@ namespace Amg static inline std::shared_ptr> construct(Arguments& args) { return std::make_shared>(args.getMatrix()); } - }; } // namespace Amg diff --git a/opm/simulators/linalg/elementborderlistfromgrid.hh b/opm/simulators/linalg/elementborderlistfromgrid.hh index 74716e4952..fd4dbe880f 100644 --- a/opm/simulators/linalg/elementborderlistfromgrid.hh +++ b/opm/simulators/linalg/elementborderlistfromgrid.hh @@ -78,11 +78,7 @@ class ElementBorderListFromGrid bool contains(int, int codim) const { return codim == 0; } -#if DUNE_VERSION_LT(DUNE_GRID, 2, 8) - bool fixedsize(int, int) const -#else bool fixedSize(int, int) const -#endif { return true; } template @@ -172,11 +168,7 @@ class ElementBorderListFromGrid bool contains(int, int codim) const { return codim == 0; } -#if DUNE_VERSION_LT(DUNE_GRID, 2, 8) - bool fixedsize(int, int) const -#else bool fixedSize(int, int) const -#endif { return true; } template diff --git a/opm/simulators/linalg/gpubridge/MultisegmentWellContribution.cpp b/opm/simulators/linalg/gpubridge/MultisegmentWellContribution.cpp index a49a82bb84..7160c826ee 100644 --- a/opm/simulators/linalg/gpubridge/MultisegmentWellContribution.cpp +++ b/opm/simulators/linalg/gpubridge/MultisegmentWellContribution.cpp @@ -23,9 +23,9 @@ #include #include -#if HAVE_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK #include -#endif // HAVE_UMFPACK +#endif // HAVE_SUITESPARSE_UMFPACK namespace Opm { diff --git a/opm/simulators/linalg/ilufirstelement.hh b/opm/simulators/linalg/ilufirstelement.hh index f343ca89a2..d921f3e086 100644 --- a/opm/simulators/linalg/ilufirstelement.hh +++ b/opm/simulators/linalg/ilufirstelement.hh @@ -29,11 +29,7 @@ namespace Opm { template -#if DUNE_VERSION_GTE(DUNE_GRID, 2, 8) K& firstMatrixElement(MatrixBlock& A) -#else -K& firstmatrixelement(MatrixBlock& A) -#endif { return A[0][0]; } } #endif // EWOMS_ILU_FIRSTELEMENT_HH diff --git a/opm/simulators/linalg/matrixblock.hh b/opm/simulators/linalg/matrixblock.hh index 1f84bcfe01..cd0fcfcf04 100644 --- a/opm/simulators/linalg/matrixblock.hh +++ b/opm/simulators/linalg/matrixblock.hh @@ -269,7 +269,7 @@ struct MatrixDimension > { }; -#if HAVE_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK /// \brief UMFPack specialization for Opm::MatrixBlock to make AMG happy /// /// Without this the empty default implementation would be used. diff --git a/opm/simulators/linalg/vertexborderlistfromgrid.hh b/opm/simulators/linalg/vertexborderlistfromgrid.hh index 18d2d18605..e5da72796b 100644 --- a/opm/simulators/linalg/vertexborderlistfromgrid.hh +++ b/opm/simulators/linalg/vertexborderlistfromgrid.hh @@ -76,11 +76,7 @@ public: bool contains(int dim, int codim) const { return dim == codim; } -#if DUNE_VERSION_LT(DUNE_GRID, 2, 8) - bool fixedsize(int, int) const -#else bool fixedSize(int, int) const -#endif { return true; } template diff --git a/opm/simulators/wells/MSWellHelpers.cpp b/opm/simulators/wells/MSWellHelpers.cpp index 0822d4529d..98efbbbfcb 100644 --- a/opm/simulators/wells/MSWellHelpers.cpp +++ b/opm/simulators/wells/MSWellHelpers.cpp @@ -41,9 +41,9 @@ #include #include -#if HAVE_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK #include -#endif // HAVE_UMFPACK +#endif // HAVE_SUITESPARSE_UMFPACK #include #include @@ -148,7 +148,7 @@ VectorType applyUMFPack(Dune::UMFPack& linsolver, VectorType x) { -#if HAVE_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK // The copy of x seems mandatory for calling UMFPack! VectorType y(x.size()); y = 0.; @@ -178,7 +178,7 @@ applyUMFPack(Dune::UMFPack& linsolver, // this is not thread safe OPM_THROW(std::runtime_error, "Cannot use applyUMFPack() without UMFPACK. " "Reconfigure opm-simulators with SuiteSparse/UMFPACK support and recompile."); -#endif // HAVE_UMFPACK +#endif // HAVE_SUITESPARSE_UMFPACK } template @@ -187,7 +187,7 @@ invertWithUMFPack(const int size, const int bsize, Dune::UMFPack& linsolver) { -#if HAVE_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK VectorType e(size); e = 0.0; @@ -217,7 +217,7 @@ invertWithUMFPack(const int size, // this is not thread safe OPM_THROW(std::runtime_error, "Cannot use invertWithUMFPack() without UMFPACK. " "Reconfigure opm-simulators with SuiteSparse/UMFPACK support and recompile."); -#endif // HAVE_UMFPACK +#endif // HAVE_SUITESPARSE_UMFPACK } template diff --git a/opm/simulators/wells/MultisegmentWellEquations.cpp b/opm/simulators/wells/MultisegmentWellEquations.cpp index 5e33f28770..0fa3b7297d 100644 --- a/opm/simulators/wells/MultisegmentWellEquations.cpp +++ b/opm/simulators/wells/MultisegmentWellEquations.cpp @@ -178,7 +178,7 @@ apply(BVector& r) const template void MultisegmentWellEquations::createSolver() { -#if HAVE_UMFPACK +#if HAVE_SUITESPARSE_UMFPACK if (duneDSolver_) { return; }