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

Add missing ConnectivityPtr template argument to sum function

The WeakSubItem* cases were not treated.
parent 5a4e1599
No related branches found
No related tags found
1 merge request!131Improve Synchronizer handling
...@@ -196,11 +196,11 @@ max(const ItemValue<DataType, item_type, ConnectivityPtr>& item_value) ...@@ -196,11 +196,11 @@ max(const ItemValue<DataType, item_type, ConnectivityPtr>& item_value)
return parallel::allReduceMax(local_max); return parallel::allReduceMax(local_max);
} }
template <typename DataType, ItemType item_type> template <typename DataType, ItemType item_type, typename ConnectivityPtr>
std::remove_const_t<DataType> std::remove_const_t<DataType>
sum(const ItemValue<DataType, item_type>& item_value) sum(const ItemValue<DataType, item_type, ConnectivityPtr>& item_value)
{ {
using ItemValueType = ItemValue<DataType, item_type>; using ItemValueType = ItemValue<DataType, item_type, ConnectivityPtr>;
using ItemIsOwnedType = ItemValue<const bool, item_type>; using ItemIsOwnedType = ItemValue<const bool, item_type>;
using data_type = std::remove_const_t<typename ItemValueType::data_type>; using data_type = std::remove_const_t<typename ItemValueType::data_type>;
using index_type = typename ItemValueType::index_type; using index_type = typename ItemValueType::index_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment