Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
IMeshPartitioner.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* IMeshPartitioner.h (C) 2000-2014 */
9/* */
10/* Interface d'un partitionneur de maillage. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_IMESHPARTITIONER_H
13#define ARCANE_IMESHPARTITIONER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/IMeshPartitionerBase.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22ARCANE_BEGIN_NAMESPACE
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27class IMesh;
28class ILoadBalanceMng;
29
30/*---------------------------------------------------------------------------*/
31/*---------------------------------------------------------------------------*/
40class ARCANE_CORE_EXPORT IMeshPartitioner
42{
43 public:
44
45 virtual ~IMeshPartitioner() {}
46
47 public:
48
49 virtual void build() =0;
50
51 public:
52
53 using IMeshPartitionerBase::partitionMesh;
54
55 virtual void partitionMesh(bool initial_partition,Int32 nb_part) =0;
56
58 ARCCORE_DEPRECATED_2021("Use primaryMesh() instead")
59 virtual IMesh* mesh() const =0;
60
62 virtual IPrimaryMesh* primaryMesh() override;
63
64 public:
65
72 //virtual void setTimeRatio(Real v) =0;
74 //virtual Real timeRatio() const =0;
76
78 virtual ARCANE_DEPRECATED_116 void setMaximumComputationTime(Real v) =0;
79 virtual ARCANE_DEPRECATED_116 Real maximumComputationTime() const =0;
80
86 virtual ARCANE_DEPRECATED_116 void setComputationTimes(RealConstArrayView v) =0;
87 virtual ARCANE_DEPRECATED_116 RealConstArrayView computationTimes() const =0;
88
95 virtual void setImbalance(Real v) =0;
97 virtual Real imbalance() const =0;
99
101 virtual void setMaxImbalance(Real v) =0;
103 virtual Real maxImbalance() const =0;
104
106 virtual ARCANE_DEPRECATED_116 void setCellsWeight(ArrayView<float> weights,Integer nb_weight) =0;
107 virtual ARCANE_DEPRECATED_116 ArrayView<float> cellsWeight() const =0;
108
110 virtual void setILoadBalanceMng(ILoadBalanceMng* mng) =0;
111 virtual ILoadBalanceMng* loadBalanceMng() const =0;
112};
113
114/*---------------------------------------------------------------------------*/
115/*---------------------------------------------------------------------------*/
116
117ARCANE_END_NAMESPACE
118
119/*---------------------------------------------------------------------------*/
120/*---------------------------------------------------------------------------*/
121
122#endif
Interface d'enregistrement des variables pour l'equilibrage de charge.
Interface d'un partitionneur de maillage.
virtual void partitionMesh(bool initial_partition)=0
Interface d'un partitionneur de maillage.
virtual ~IMeshPartitioner()
Libère les ressources.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Vue modifiable d'un tableau d'un type T.
Vue constante d'un tableau de type T.