Skip to content
Ralf Hiptmair edited this page Jun 1, 2018 · 9 revisions

LehrFEM++ Wiki

This wiki is meant for general discussions concerning the design of LehrFEM++. Please use Github issues in order to point out bugs or make specific requests to the developers.

Many documents concerning the design of LehrFEM++ can be found in SVN Repository (password protected)

Entity Creation during refinement

Important design issue: Building of mesh entities during mesh refinement. The refinement class may not know the actual type of the mesh entities it has to construct. A possibility is to rely on C++ type ids and equip the refinement class with virtual methods virtual EntityPtr BuildVertex(const Entity &parent), virtual entityPtr BuildEdge(const Entity &parent,const Entity &p0,const Entity &p1), virtual entityPtr BuildTriangle(const Entity &parent,const Entity &e0,const Entity &e1,const Entity &e2), and virtual EntityPtr BuildQuad(const Entity &parent,const Entity &e0,const Entity &e1,const Entity &e2,const Entity &e3).

These methods could check the type of 'parent' and then dynamically allocated the right object.

Clone this wiki locally