diff --git a/src/mesh/ConnectivityDispatcher.cpp b/src/mesh/ConnectivityDispatcher.cpp index 26ca51ce211bfda1d133fd42a49421f9d831ae74..792bb0c18e9577e4afc8859b6c328777ea7c2928 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>();