Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ILoadBalanceMngInternal.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* ILoadBalanceMngInternal.h (C) 2000-2024 */
9/* */
10/* Internal class interface managing the mesh load balance. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#ifndef ARCANE_CORE_INTERNAL_ILOADBALANCEMNGINTERNAL_H
15#define ARCANE_CORE_INTERNAL_ILOADBALANCEMNGINTERNAL_H
16
17/*---------------------------------------------------------------------------*/
18/*---------------------------------------------------------------------------*/
19
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
37class ARCANE_CORE_EXPORT ILoadBalanceMngInternal
38{
39 public:
40
41 virtual ~ILoadBalanceMngInternal() = default;
42
43 public:
44
45 virtual void addMass(VariableCellInt32& count, IMesh* mesh, const String& entity) = 0;
46 virtual void addCriterion(VariableCellInt32& count, IMesh* mesh) = 0;
47 virtual void addCriterion(VariableCellReal& count, IMesh* mesh) = 0;
48 virtual void addCommCost(VariableFaceInt32& count, IMesh* mesh, const String& entity) = 0;
49
50 public:
51
52 virtual void setMassAsCriterion(IMesh* mesh, bool active) = 0;
53 virtual void setNbCellsAsCriterion(IMesh* mesh, bool active) = 0;
54 virtual void setCellCommContrib(IMesh* mesh, bool active) = 0;
55 virtual void setComputeComm(IMesh* mesh, bool active) = 0;
56 virtual const VariableFaceReal& commCost(IMesh* mesh) = 0;
57 virtual const VariableCellReal& massWeight(IMesh* mesh) = 0;
58 virtual const VariableCellReal& massResWeight(IMesh* mesh) = 0;
59 virtual const VariableCellArrayReal& mCriteriaWeight(IMesh* mesh) = 0;
60
61 virtual bool cellCommContrib(IMesh* mesh) = 0;
62 virtual Integer nbCriteria(IMesh* mesh) = 0;
63
64 virtual void reset(IMesh* mesh) = 0;
65 virtual void initAccess(IMesh* mesh) = 0;
66 virtual void endAccess() = 0;
67 virtual void notifyEndPartition() = 0;
68};
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73} // End namespace Arcane
74
75/*---------------------------------------------------------------------------*/
76/*---------------------------------------------------------------------------*/
77
78#endif
Internal API of ILoadBalanceMng to Arcane.
virtual ~ILoadBalanceMngInternal()=default
Frees resources.
MeshVariableScalarRefT< Face, Real > VariableFaceReal
Real type quantity at face.
MeshVariableScalarRefT< Cell, Real > VariableCellReal
Real type quantity at cell center.
MeshVariableArrayRefT< Cell, Real > VariableCellArrayReal
Quantity at the cell center of real array type.
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.