-
- Downloads
Reduce memory use and allocations for some connectivity descriptors
Memory use reduction occurs for 1D and 2D - In dimension 1 node/edge/face numbers/owner/is_owned share the same underlying arrays since node, edge and face are actually the same - In dimension 2 edge/face numbers/owner/is_owned share the same underlying arrays since edge and face are actually the same On the way, ItemValue (resp. ItemArray) APIs changed: one can no more affect a direct Array (resp. Table). One now must use the new constructor that uses a connectivity and an Array (resp. Table). This is always a better approach than before since it eventually consumes one useless allocation/deallocation.
parent
5d0d902f
No related branches found
No related tags found
This commit is part of merge request !132. Comments created here will be created in the context of that merge request.
Showing
- src/mesh/Connectivity.cpp 25 additions, 100 deletionssrc/mesh/Connectivity.cpp
- src/mesh/ConnectivityDispatcher.cpp 1 addition, 2 deletionssrc/mesh/ConnectivityDispatcher.cpp
- src/mesh/ItemArray.hpp 7 additions, 22 deletionssrc/mesh/ItemArray.hpp
- src/mesh/ItemValue.hpp 7 additions, 20 deletionssrc/mesh/ItemValue.hpp
- tests/test_ItemArray.cpp 7 additions, 10 deletionstests/test_ItemArray.cpp
- tests/test_ItemValue.cpp 6 additions, 10 deletionstests/test_ItemValue.cpp
Loading
Please register or sign in to comment