-
- Downloads
Finish reduction (sum, min and max) functions for ItemValue
- These functions treat only owned items to perform reductions. - ItemValue now know the Connectivity it is built on. To do so, one adds a `shared_ptr` to the Connectivity to preserve coherence of the data, even when Connectivity is no more used (for instance replaced by another). - Since it is convenient to be able to use the ItemValue mechanism to describe the Connectivity itself, we introduced "WeakItemValue" types which do not point to the connectivity through a `shared_ptr` but using a `weak_ptr`. These template types (WeakNodeValue, WeakEdgeValue, WeakFaceValue and WeakCellValue) **should not be used** outside of the Connectivity classes - Actually "WeakItemValue" is build using the third template parameter of ItemValue which is defaulted to `shared_ptr`. - During these developments, simple clean-up were performed to Mesh, MeshData and MeshNodeBoundary: one now accesses to the dimension using T::Dimension (for static use) of through the dimension() member function (for dynamic use). - Note that same kind of work will be performed for SubItemValuePerItem (use a pointer to the Connectivity) and define a "WeakSubItemValuePerItem" to the case of Connectivity internal members
Showing
- src/main.cpp 11 additions, 11 deletionssrc/main.cpp
- src/mesh/Connectivity.cpp 22 additions, 21 deletionssrc/mesh/Connectivity.cpp
- src/mesh/Connectivity.hpp 102 additions, 41 deletionssrc/mesh/Connectivity.hpp
- src/mesh/GmshReader.cpp 6 additions, 6 deletionssrc/mesh/GmshReader.cpp
- src/mesh/IConnectivity.hpp 8 additions, 1 deletionsrc/mesh/IConnectivity.hpp
- src/mesh/ItemValue.hpp 69 additions, 22 deletionssrc/mesh/ItemValue.hpp
- src/mesh/ItemValueUtils.hpp 105 additions, 11 deletionssrc/mesh/ItemValueUtils.hpp
- src/mesh/Mesh.hpp 6 additions, 6 deletionssrc/mesh/Mesh.hpp
- src/mesh/MeshData.hpp 11 additions, 11 deletionssrc/mesh/MeshData.hpp
- src/mesh/MeshNodeBoundary.hpp 16 additions, 16 deletionssrc/mesh/MeshNodeBoundary.hpp
- src/output/VTKWriter.hpp 3 additions, 3 deletionssrc/output/VTKWriter.hpp
- src/scheme/AcousticSolver.hpp 5 additions, 5 deletionssrc/scheme/AcousticSolver.hpp
- src/scheme/FiniteVolumesEulerUnknowns.hpp 2 additions, 2 deletionssrc/scheme/FiniteVolumesEulerUnknowns.hpp
- src/utils/Messenger.hpp 15 additions, 9 deletionssrc/utils/Messenger.hpp
Loading
Please register or sign in to comment