From e7b85be9de66d4305e5e61d18095b7283fc54885 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Mon, 13 May 2019 18:35:56 +0200 Subject: [PATCH] Build item new owner only when its relevant - In 2D and 3D faces new owners are built - In 3D edges new owners are built --- src/mesh/ConnectivityDispatcher.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mesh/ConnectivityDispatcher.cpp b/src/mesh/ConnectivityDispatcher.cpp index 26ca51ce2..792bb0c18 100644 --- a/src/mesh/ConnectivityDispatcher.cpp +++ b/src/mesh/ConnectivityDispatcher.cpp @@ -620,8 +620,12 @@ ConnectivityDispatcher<Dimension>::ConnectivityDispatcher(const ConnectivityType : m_connectivity(connectivity) { this->_buildNewOwner<ItemType::cell>(); - this->_buildNewOwner<ItemType::face>(); - this->_buildNewOwner<ItemType::edge>(); + if constexpr (Dimension > 1) { + this->_buildNewOwner<ItemType::face>(); + } + if constexpr (Dimension > 2) { + this->_buildNewOwner<ItemType::edge>(); + } this->_buildNewOwner<ItemType::node>(); this->_buildItemToExchangeLists<ItemType::cell>(); -- GitLab