From 7bcdbc390f4f704a04cf69a79cd0d41475d70e05 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Fri, 1 Feb 2019 10:24:26 +0100 Subject: [PATCH] Add face number access function --- src/mesh/Connectivity.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mesh/Connectivity.hpp b/src/mesh/Connectivity.hpp index 4531a89f2..d38c0e163 100644 --- a/src/mesh/Connectivity.hpp +++ b/src/mesh/Connectivity.hpp @@ -47,7 +47,7 @@ class ConnectivityDescriptor std::vector<std::vector<unsigned int>> cell_to_face_vector; std::vector<std::vector<bool>> cell_face_is_reversed_vector; - std::vector<std::vector<unsigned int>> face_to_cell_vector; + // std::vector<std::vector<unsigned int>> face_to_cell_vector; std::vector<std::vector<unsigned int>> face_to_node_vector; std::vector<CellType> cell_type_vector; @@ -168,6 +168,12 @@ class Connectivity final return m_cell_number; } + PASTIS_INLINE + const FaceValue<const int>& faceNumber() const + { + return m_face_number; + } + PASTIS_INLINE const EdgeValue<const int>& edgeNumber() const { @@ -186,6 +192,12 @@ class Connectivity final return m_cell_owner; } + PASTIS_INLINE + const FaceValue<const int>& faceOwner() const + { + return m_face_owner; + } + PASTIS_INLINE const NodeValue<const int>& nodeOwner() const { -- GitLab