Skip to content

[MeL/Elements] Calculate content on the fly - saves memory.

This MR is part of a series of changes / improvements in MeshLib. Here the memory footprint of the mesh should be reduced.

Time for reading and memory consumption for two meshes generated as follows:

generateStructuredMesh -e prism --lx 1 --ly 1 --lz 1 --nx 100 --ny 100 --nz 100 -o 2e6_prism.vtu
generateStructuredMesh -e hex --lx 1 --ly 1 --lz 1 --nx 100 --ny 100 --nz 100 -o 1e6_hex.vtu

The memory comparison are based on the output of the checkMesh tool compiled for the master and the MeshLibElementCleanup-ReImplementGetContent branches.

branch mesh run time in s memory in MB
master 2e6_prism 6.3 784
master 1e6_hex 3.5 609
MeshLibElementCleanup-ReImplementGetContent 2e6_prism 6.6 753
MeshLibElementCleanup-ReImplementGetContent 1e6_hex 3.8 593
Edited by Tom Fischer

Merge request reports