Commit d0eb3f22 authored by Sophie Wenzel-Teuber's avatar Sophie Wenzel-Teuber

Rename file and class Communicator_interface[.hh] to Communicator[.hh]

parent ebfe9044
......@@ -29,7 +29,7 @@
#include "exseisdat/piol/operations/sort_operations/sort.hh"
#include "exseisdat/piol/segy/Trace_header_offsets.hh"
#include "exseisdat/piol/segy/utils.hh"
#include "exseisdat/utils/communicator/Communicator_interface.hh"
#include "exseisdat/utils/communicator/Communicator.hh"
#include "exseisdat/utils/communicator/Communicator_mpi.hh"
#include "exseisdat/utils/decomposition/block_decomposition.hh"
#include "exseisdat/utils/distributed_vector/Distributed_vector.hh"
......
......@@ -9,8 +9,8 @@
/// inter-process communication technology if one is of particular
/// interest.
////////////////////////////////////////////////////////////////////////////////
#ifndef EXSEISDAT_UTILS_COMMUNICATOR_COMMUNICATOR_INTERFACE_HH
#define EXSEISDAT_UTILS_COMMUNICATOR_COMMUNICATOR_INTERFACE_HH
#ifndef EXSEISDAT_UTILS_COMMUNICATOR_COMMUNICATOR_HH
#define EXSEISDAT_UTILS_COMMUNICATOR_COMMUNICATOR_HH
#include "exseisdat/utils/types/typedefs.hh"
......@@ -25,7 +25,7 @@ using namespace exseis::utils::types;
/// @brief The Communication layer interface. Specific communication
/// implementations work off this base class.
///
class Communicator_interface {
class Communicator {
protected:
/// @brief A number in the sequence from 0 to some maximum (num_rank-1)
/// which indicates the process number.
......@@ -37,7 +37,7 @@ class Communicator_interface {
public:
/// @brief A virtual destructor to allow deletion.
///
virtual ~Communicator_interface() = default;
virtual ~Communicator() = default;
/// @brief Returns the rank of the process executing the function/
///
......@@ -156,4 +156,4 @@ class Communicator_interface {
} // namespace utils
} // namespace exseis
#endif // EXSEISDAT_UTILS_COMMUNICATOR_COMMUNICATOR_INTERFACE_HH
#endif // EXSEISDAT_UTILS_COMMUNICATOR_COMMUNICATOR_HH
......@@ -12,7 +12,7 @@
#ifndef EXSEISDAT_UTILS_COMMUNICATOR_COMMUNICATOR_MPI_HH
#define EXSEISDAT_UTILS_COMMUNICATOR_COMMUNICATOR_MPI_HH
#include "exseisdat/utils/communicator/Communicator_interface.hh"
#include "exseisdat/utils/communicator/Communicator.hh"
#include "exseisdat/utils/logging/Log.hh"
#include "exseisdat/utils/types/typedefs.hh"
......@@ -36,7 +36,7 @@ void manage_mpi(bool);
/// @brief The MPI communication class. All MPI communication specific routines
/// should be wrapped up and accessible from this class.
///
class Communicator_mpi : public Communicator_interface {
class Communicator_mpi : public Communicator {
private:
/// The MPI communicator.
MPI_Comm m_comm;
......@@ -82,7 +82,7 @@ class Communicator_mpi : public Communicator_interface {
template<class T>
std::vector<T> gather(const T& val) const
{
return Communicator_interface::gather<T>(val);
return Communicator::gather<T>(val);
}
size_t sum(size_t val) const override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment