diff --git a/src/amdis/ProblemStat.hpp b/src/amdis/ProblemStat.hpp index 9fd6901acebb699597d612c0c235117b5346cc3a..033a6b65ade3f3186f3f24635f5871aad047f458 100644 --- a/src/amdis/ProblemStat.hpp +++ b/src/amdis/ProblemStat.hpp @@ -73,7 +73,7 @@ namespace AMDiS **/ explicit ProblemStat(std::string name) : StandardProblemIteration(dynamic_cast<ProblemStatBase&>(*this)) - , name(std::move(name)) + , name_(std::move(name)) {} /// Constructor taking additionally a reference to a grid that is used @@ -94,19 +94,6 @@ namespace AMDiS initGlobalBasis(*globalBasis_); } - /// \brief Constructor taking a grid reference and a basis reference. - /// Stores pointers to both. - ProblemStat(std::string name, Grid& grid, GlobalBasis& globalBasis) - : StandardProblemIteration(dynamic_cast<ProblemStatBase&>(*this)) - , name(std::move(name)) - { - gridName = ""; - Parameters::get(name + "->mesh", gridName); - - globalBasis_ = Dune::stackobject_to_shared_ptr(globalBasis); - initGlobalBasis(*globalBasis_); - } - /** * \brief Initialisation of the problem. @@ -246,9 +233,9 @@ namespace AMDiS void createGlobalBasis(std::true_type) { - assert( bool(grid) ); + assert( bool(grid_) ); static_assert(std::is_same<GridView, typename Grid::LeafGridView>::value, ""); - globalBasis_ = std::make_shared<GlobalBasis>(Traits::create(grid->leafGridView())); + globalBasis_ = std::make_shared<GlobalBasis>(Traits::create(grid_->leafGridView())); } void createGlobalBasis(std::false_type) @@ -273,10 +260,10 @@ namespace AMDiS void initGlobalBasis(GlobalBasis const& globalBasis) { - localView_ = std::make_shared<typename GlobalBasis::LocalView>(globalBasis.localView()); - matrixOperators.init(localView_->tree(), tag::store{}); - rhsOperators.init(localView_->tree(), tag::store{}); - constraints.init(localView_->tree(), tag::store{}); + localView_ = std::make_shared<typename GlobalBasis::LocalView>(globalBasis_->localView()); + matrixOperators_.init(localView_->tree(), tag::store{}); + rhsOperators_.init(localView_->tree(), tag::store{}); + constraints_.init(localView_->tree(), tag::store{}); } void createMatricesAndVectors() diff --git a/src/amdis/common/ConceptsBase.hpp b/src/amdis/common/ConceptsBase.hpp index a42cd50cc982530c426e00755183a6657c6e21b8..86a2befda56702954f81fffd1c0ae465c7a5e623 100644 --- a/src/amdis/common/ConceptsBase.hpp +++ b/src/amdis/common/ConceptsBase.hpp @@ -1,6 +1,7 @@ #pragma once #include <type_traits> +#include <dune/common/typetraits.hh> #ifdef DOXYGEN #define REQUIRES(...) diff --git a/src/amdis/utility/TreeData.hpp b/src/amdis/utility/TreeData.hpp index 9325cf1398d50431a3ebb8301cc4a8bd704f4963..68ae7a1118c2fc5268cedf22133f91f8b40fa1b2 100644 --- a/src/amdis/utility/TreeData.hpp +++ b/src/amdis/utility/TreeData.hpp @@ -252,11 +252,7 @@ namespace AMDiS void init(Tree const& tree, tag::store) { Super::init(tree, tag::store{}); -<<<<<<< c786927261d1c07223ce3f9feabd89e439f2f4bb - AMDiS::forEachNode_(tree, [&,this](auto const& node, auto&&) -======= forEachNode_(tree, [&,this](auto const& node, auto&&) ->>>>>>> compatibility with dune 2.6.0 of all dependend modules { (*this)[node].init(tree, tag::store{}); });