14#include "arcane/core/MeshCriteriaLoadBalanceMng.h"
15#include "arcane/core/internal/ILoadBalanceMngInternal.h"
33: m_internal(sd->loadBalanceMng()->_internalApi())
34, m_mesh_handle(mesh_handle)
44 m_internal->reset(m_mesh_handle.mesh());
53 m_internal->addCriterion(count, m_mesh_handle.mesh());
62 m_internal->addCriterion(count, m_mesh_handle.mesh());
71 m_internal->addMass(count, m_mesh_handle.mesh(), entity);
80 m_internal->addCommCost(count, m_mesh_handle.mesh(), entity);
89 m_internal->setMassAsCriterion(m_mesh_handle.mesh(), active);
98 m_internal->setNbCellsAsCriterion(m_mesh_handle.mesh(), active);
107 m_internal->setCellCommContrib(m_mesh_handle.mesh(), active);
116 m_internal->setComputeComm(m_mesh_handle.mesh(), active);
125 return m_internal->nbCriteria(m_mesh_handle.mesh());
Interface of the subdomain manager.
void setNbCellsAsCriterion(bool active) override
Method allowing to specify if the number of cells in a subdomain must be a criterion for load balance...
void addMass(VariableCellInt32 &count, const String &entity) override
Method allowing a criterion to be added for each cell.
Integer nbCriteria() override
Method allowing to retrieve the number of criteria already registered.
void addCommCost(VariableFaceInt32 &count, const String &entity) override
Method allowing a criterion to be added for each face.
void setComputeComm(bool active) override
MeshCriteriaLoadBalanceMng(ISubDomain *sd, const MeshHandle &mesh_handle)
Constructor.
void addCriterion(VariableCellInt32 &count) override
Method allowing a criterion to be added for each cell.
void setMassAsCriterion(bool active) override
Method allowing to specify if the data mass of each cell is a criterion for load balance.
void reset() override
Method allowing the criteria already added to be cleared.
void setCellCommContrib(bool active) override
Method allowing to specify if the mass of communications between cells must be a criterion for load b...
Unicode character string.
MeshVariableScalarRefT< Cell, Real > VariableCellReal
Real type quantity at cell center.
MeshVariableScalarRefT< Cell, Int32 > VariableCellInt32
Quantity at the cell center of 32-bit integer type.
MeshVariableScalarRefT< Face, Int32 > VariableFaceInt32
Quantity at the face of 32-bit integer type.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.