Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • extensions/dune-foamgrid
  • ansgar/dune-foamgrid
  • simon.praetorius/dune-foamgrid
  • kilian.weishaupt/dune-foamgrid
  • samuel.burbulla/dune-foamgrid
  • lisa_julia.nebel/dune-foamgrid
6 results
Show changes
Commits on Source (5)
......@@ -31,4 +31,4 @@ Publications
The concepts of `dune-foamgrid` are presented in the following publication:
[O. Sander, T. Koch, N. Schröder, B. Flemisch, The Dune FoamGrid implementation for surface and network grids, arXiv:1511.03415, 2015](http://arxiv.org/abs/1511.03415)
__Sander, O., Koch, T., Schröder, N., & Flemisch, B. (2017).__ *The Dune FoamGrid implementation for surface and network grids. Archive of Numerical Software*, 5(1), 217-244, http://dx.doi.org/10.11588/ans.2017.1.28490.
......@@ -33,46 +33,41 @@ namespace Dune {
FoamGridEntityImp(FoamGridEntityImp<0, dimgrid, dimworld>* v0,
FoamGridEntityImp<0, dimgrid, dimworld>* v1,
int level, unsigned int id)
: FoamGridEntityBase(level,id), nSons_(0), father_(nullptr),
: FoamGridEntityBase(level,id),
vertex_{{v0, v1}},
facet_{{v0, v1}},
sons_{{nullptr, nullptr}},
nSons_(0), father_(nullptr),
refinementIndex_(-1), markState_(DO_NOTHING), isNew_(false),
coarseningBlocked_(false),
growthInsertionIndex_(-1)
{
vertex_[0] = v0;
vertex_[1] = v1;
facet_[0] = v0;
facet_[1] = v1;
sons_[0] = sons_[1] = nullptr;
}
{}
FoamGridEntityImp(FoamGridEntityImp<0, dimgrid, dimworld>* v0,
FoamGridEntityImp<0, dimgrid, dimworld>* v1,
int level, unsigned int id,
FoamGridEntityImp* father)
: FoamGridEntityBase(level,id), nSons_(0), father_(father),
: FoamGridEntityBase(level,id),
vertex_{{v0, v1}},
facet_{{v0, v1}},
sons_{{nullptr, nullptr}},
nSons_(0), father_(father),
refinementIndex_(-1), markState_(DO_NOTHING), isNew_(false),
coarseningBlocked_(false),
growthInsertionIndex_(-1)
{
vertex_[0] = v0;
vertex_[1] = v1;
facet_[0] = v0;
facet_[1] = v1;
sons_[0] =sons_[1] = nullptr;
}
{}
FoamGridEntityImp(int level, unsigned int id)
: FoamGridEntityBase(level, id),
vertex_{{nullptr, nullptr}},
facet_{{nullptr, nullptr}},
sons_{{nullptr, nullptr}},
nSons_(0), refinementIndex_(-1),
markState_(DO_NOTHING), isNew_(false),
coarseningBlocked_(false),
growthInsertionIndex_(-1)
{
sons_[0] = sons_[1] = nullptr;
father_ = nullptr;
}
{}
/** \todo Implement this method! */
bool isLeaf() const {
......@@ -197,13 +192,14 @@ namespace Dune {
: FoamGridEntityBase(level,id),
refinementIndex_(-1),
nSons_(0),
sons_{{nullptr, nullptr, nullptr, nullptr}},
facet_{{nullptr, nullptr, nullptr}},
vertex_{{nullptr, nullptr, nullptr}},
markState_(DO_NOTHING), isNew_(false),
father_{nullptr},
coarseningBlocked_(false),
growthInsertionIndex_(-1)
{
sons_[0]= sons_[1] = sons_[2] = sons_[3] = nullptr;
father_ = nullptr;
}
{}
int corners() const {
......
......@@ -56,8 +56,9 @@ class FoamGridIntersection
friend class Dune::Intersection;
FoamGridIntersection()
: center_(nullptr),
neighbor_(FoamGridNullIteratorFactory<dimgrid, dimworld>::null())
: center_(nullptr)
, facetIndex_(-1)
, neighbor_(FoamGridNullIteratorFactory<dimgrid, dimworld>::null())
{}
/**
......@@ -527,7 +528,6 @@ public:
private:
FoamGridEntityImp<dimgrid-1, dimgrid ,dimworld>* facetPointer_;
//! pointer to global and local intersection geometries
mutable std::shared_ptr<GeometryImpl> geometry_;
mutable std::shared_ptr<LocalGeometryImpl> geometryInInside_;
......