From 037120da6e026105b63726c2724efa5115018c53 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Thu, 28 Feb 2019 15:19:06 +0100 Subject: [PATCH] Rename ItemValueSynchronizer to Synchronizer --- src/mesh/ItemValueSynchronizer.hpp | 10 +++++----- src/mesh/ItemValueUtils.hpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesh/ItemValueSynchronizer.hpp b/src/mesh/ItemValueSynchronizer.hpp index 610ac380c..87b5c56c9 100644 --- a/src/mesh/ItemValueSynchronizer.hpp +++ b/src/mesh/ItemValueSynchronizer.hpp @@ -1,12 +1,12 @@ -#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 diff --git a/src/mesh/ItemValueUtils.hpp b/src/mesh/ItemValueUtils.hpp index e0e1f9608..882c063b6 100644 --- a/src/mesh/ItemValueUtils.hpp +++ b/src/mesh/ItemValueUtils.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); } } -- GitLab