12#ifndef ARCANE_IMESHPARTITIONER_H
13#define ARCANE_IMESHPARTITIONER_H
17#include "arcane/core/IMeshPartitionerBase.h"
41 virtual void build() = 0;
47 virtual void partitionMesh(
bool initial_partition,
Int32 nb_part) = 0;
50 ARCCORE_DEPRECATED_2021(
"Use primaryMesh() instead")
71 virtual ARCANE_DEPRECATED_116
Real maximumComputationTime() const = 0;
99 virtual ARCANE_DEPRECATED_116
ArrayView<
float> cellsWeight() const = 0;
Modifiable view of an array of type T.
Interface for registering variables for load balancing.
Interface of a mesh partitioner.
virtual void partitionMesh(bool initial_partition)=0
Interface of a mesh partitioner.
virtual ARCANE_DEPRECATED_116 void setComputationTimes(RealConstArrayView v)=0
Computation time of this subdomain. The first element indicates the computation time of the subdomain...
virtual void setImbalance(Real v)=0
Sets the computation time imbalance.
virtual IMesh * mesh() const =0
Mesh associated with the partitioner.
virtual Real imbalance() const =0
Computation time imbalance.
virtual void setILoadBalanceMng(ILoadBalanceMng *mng)=0
Changes the ILoadBalanceMng to use.
virtual IPrimaryMesh * primaryMesh() override
Associated mesh.
virtual Real maxImbalance() const =0
Maximum allowed imbalance.
virtual ARCANE_DEPRECATED_116 void setCellsWeight(ArrayView< float > weights, Integer nb_weight)=0
Allows defining the weights of objects to be partitioned: ILoadBalanceMng must now be used.
virtual ARCANE_DEPRECATED_116 void setMaximumComputationTime(Real v)=0
Sets the proportion of computation time.
virtual void setMaxImbalance(Real v)=0
Sets the maximum allowed imbalance.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.
std::int32_t Int32
Signed integer type of 32 bits.
ConstArrayView< Real > RealConstArrayView
C equivalent of a 1D array of reals.