23 #include <CD_NamespaceHeader.H>
46 virtual std::map<int, Real>&
53 virtual const std::map<int, Real>&
67 assignLoads(
const std::map<int, Real>& a_assignedLoads) noexcept;
74 assignLoads(
const std::vector<Real>& a_assignedLoads) noexcept;
81 assignLoads(
const Vector<Real>& a_assignedLoads) noexcept;
110 incrementLoad(
const int a_rank,
const Real a_increment) noexcept;
116 virtual std::vector<std::pair<int, Real>>
127 #include <CD_NamespaceFooter.H>
Class for holding computational loads.
Definition: CD_Loads.H:30
Loads() noexcept
Constructor. Assigns zero loads.
Definition: CD_Loads.cpp:23
virtual void assignLoads(const std::map< int, Real > &a_assignedLoads) noexcept
Assign loads.
Definition: CD_Loads.cpp:66
virtual ~Loads() noexcept
Destructor (does nothing).
Definition: CD_Loads.cpp:30
virtual void resetLoads() noexcept
Reset loads. Sets all loads to 0.
Definition: CD_Loads.cpp:54
virtual std::map< int, Real > & getLoads() noexcept
Get the computational loads.
Definition: CD_Loads.cpp:38
std::map< int, Real > m_loads
Actual computational loads per MPI rank.
Definition: CD_Loads.H:124
virtual void incrementLoad(const int a_rank, const Real a_increment) noexcept
Increment load on rank.
Definition: CD_Loads.cpp:168
virtual void incrementLoads(const std::map< int, Real > &a_increments) noexcept
Increment loads. In this version a_increments[0] is the load increment for rank 0,...
Definition: CD_Loads.cpp:117
virtual std::vector< std::pair< int, Real > > getSortedLoads() const noexcept
Get sorted loads.
Definition: CD_Loads.cpp:183