Skip to content
Snippets Groups Projects
Commit 04d598a2 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Make obstacleRestrictor protected and add a setter

parent e1f2b0ec
Branches
No related tags found
1 merge request!10Mmg shared ptr restrictor
...@@ -57,7 +57,10 @@ public: ...@@ -57,7 +57,10 @@ public:
//! Set the obstacle field //! Set the obstacle field
void setObstacles(ObstacleVectorType* obstacles) {obstacles_ = obstacles;} void setObstacles(ObstacleVectorType* obstacles) {obstacles_ = obstacles;}
std::shared_ptr<ObstacleRestrictor<VectorType> > obstacleRestrictor_; //! Set the obstacle restrictor
void setObstacleRestrictor(std::shared_ptr<ObstacleRestrictor<VectorType> > restrictor) {
obstacleRestrictor_ = restrictor;
}
//! Bitfield determining which fine grid nodes have an obstacle //! Bitfield determining which fine grid nodes have an obstacle
Dune::BitSetVector<dim>* hasObstacle_; Dune::BitSetVector<dim>* hasObstacle_;
...@@ -70,6 +73,9 @@ public: ...@@ -70,6 +73,9 @@ public:
Dune::BitSetVector<dim> oldCritical; Dune::BitSetVector<dim> oldCritical;
protected: protected:
//! The restrictor used to construct the coarse obstacles
std::shared_ptr<ObstacleRestrictor<VectorType> > obstacleRestrictor_;
//! Bitfield hierarchy containing the coarse obstacle nodes //! Bitfield hierarchy containing the coarse obstacle nodes
std::vector<Dune::BitSetVector<dim>* > hasObstacleHierarchy_; std::vector<Dune::BitSetVector<dim>* > hasObstacleHierarchy_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment