Skip to content
Snippets Groups Projects
Commit d887ec02 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

rebased to develop and added small corrections

parent 384b27d4
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ namespace AMDiS ...@@ -73,7 +73,7 @@ namespace AMDiS
**/ **/
explicit ProblemStat(std::string name) explicit ProblemStat(std::string name)
: StandardProblemIteration(dynamic_cast<ProblemStatBase&>(*this)) : StandardProblemIteration(dynamic_cast<ProblemStatBase&>(*this))
, name(std::move(name)) , name_(std::move(name))
{} {}
/// Constructor taking additionally a reference to a grid that is used /// Constructor taking additionally a reference to a grid that is used
...@@ -94,19 +94,6 @@ namespace AMDiS ...@@ -94,19 +94,6 @@ namespace AMDiS
initGlobalBasis(*globalBasis_); 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. * \brief Initialisation of the problem.
...@@ -246,9 +233,9 @@ namespace AMDiS ...@@ -246,9 +233,9 @@ namespace AMDiS
void createGlobalBasis(std::true_type) void createGlobalBasis(std::true_type)
{ {
assert( bool(grid) ); assert( bool(grid_) );
static_assert(std::is_same<GridView, typename Grid::LeafGridView>::value, ""); 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) void createGlobalBasis(std::false_type)
...@@ -273,10 +260,10 @@ namespace AMDiS ...@@ -273,10 +260,10 @@ namespace AMDiS
void initGlobalBasis(GlobalBasis const& globalBasis) void initGlobalBasis(GlobalBasis const& globalBasis)
{ {
localView_ = std::make_shared<typename GlobalBasis::LocalView>(globalBasis.localView()); localView_ = std::make_shared<typename GlobalBasis::LocalView>(globalBasis_->localView());
matrixOperators.init(localView_->tree(), tag::store{}); matrixOperators_.init(localView_->tree(), tag::store{});
rhsOperators.init(localView_->tree(), tag::store{}); rhsOperators_.init(localView_->tree(), tag::store{});
constraints.init(localView_->tree(), tag::store{}); constraints_.init(localView_->tree(), tag::store{});
} }
void createMatricesAndVectors() void createMatricesAndVectors()
......
#pragma once #pragma once
#include <type_traits> #include <type_traits>
#include <dune/common/typetraits.hh>
#ifdef DOXYGEN #ifdef DOXYGEN
#define REQUIRES(...) #define REQUIRES(...)
......
...@@ -252,11 +252,7 @@ namespace AMDiS ...@@ -252,11 +252,7 @@ namespace AMDiS
void init(Tree const& tree, tag::store) void init(Tree const& tree, tag::store)
{ {
Super::init(tree, tag::store{}); Super::init(tree, tag::store{});
<<<<<<< c786927261d1c07223ce3f9feabd89e439f2f4bb
AMDiS::forEachNode_(tree, [&,this](auto const& node, auto&&)
=======
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{}); (*this)[node].init(tree, tag::store{});
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment