[MeL/Elements] Calculate content on the fly.
The getContent() method is used only on very few places. Especially, it isn't used in the computation of any THMC processes. So the content doesn't need to be stored which saves memory. Furthermore, the time time for reading / initializing a mesh is reduced. In a hex mesh with 100x100x100 elements this saves 2.6% of storage and circa 25% time.
Showing
- MeshLib/Elements/Element.cpp 1 addition, 1 deletionMeshLib/Elements/Element.cpp
- MeshLib/Elements/Element.h 1 addition, 3 deletionsMeshLib/Elements/Element.h
- MeshLib/Elements/TemplateElement-impl.h 5 additions, 3 deletionsMeshLib/Elements/TemplateElement-impl.h
- MeshLib/Elements/TemplateElement.h 1 addition, 0 deletionsMeshLib/Elements/TemplateElement.h
Please register or sign in to comment