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

Rename ItemValueSynchronizer to Synchronizer

parent 895ae053
No related branches found
No related tags found
1 merge request!11Feature/mpi
#ifndef ITEM_VALUE_SYNCHRONIZER_HPP
#define ITEM_VALUE_SYNCHRONIZER_HPP
#ifndef SYNCHRONIZER_HPP
#define SYNCHRONIZER_HPP
#include <ItemValue.hpp>
#include <Connectivity.hpp>
#include <map>
class ItemValueSynchronizer
class Synchronizer
{
template <ItemType item_type>
using ExchangeItemTypeInfo = std::vector<Array<const ItemIdT<item_type>>>;
......@@ -196,10 +196,10 @@ class ItemValueSynchronizer
}
PASTIS_INLINE
ItemValueSynchronizer()
Synchronizer()
{
;
}
};
#endif // ITEM_VALUE_SYNCHRONIZER_HPP
#endif // SYNCHRONIZER_HPP
......@@ -300,7 +300,7 @@ void synchronize(ItemValue<DataType, item_type, ConnectivityPtr>& item_value)
{
static_assert(not std::is_const_v<DataType>, "cannot synchronize ItemValue of const data");
if (parallel::size() > 1) {
static ItemValueSynchronizer synchronizer;
static Synchronizer synchronizer;
synchronizer.synchronize(item_value);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment