Skip to content
Snippets Groups Projects
Commit e7b85be9 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Build item new owner only when its relevant

- In 2D and 3D faces new owners are built
- In 3D edges new owners are built
parent 2ad1e120
No related branches found
No related tags found
No related merge requests found
...@@ -620,8 +620,12 @@ ConnectivityDispatcher<Dimension>::ConnectivityDispatcher(const ConnectivityType ...@@ -620,8 +620,12 @@ ConnectivityDispatcher<Dimension>::ConnectivityDispatcher(const ConnectivityType
: m_connectivity(connectivity) : m_connectivity(connectivity)
{ {
this->_buildNewOwner<ItemType::cell>(); this->_buildNewOwner<ItemType::cell>();
if constexpr (Dimension > 1) {
this->_buildNewOwner<ItemType::face>(); this->_buildNewOwner<ItemType::face>();
}
if constexpr (Dimension > 2) {
this->_buildNewOwner<ItemType::edge>(); this->_buildNewOwner<ItemType::edge>();
}
this->_buildNewOwner<ItemType::node>(); this->_buildNewOwner<ItemType::node>();
this->_buildItemToExchangeLists<ItemType::cell>(); this->_buildItemToExchangeLists<ItemType::cell>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment