Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
PTScotchMeshPartitioner_axl.h
1/*---------------------------------------------------------------------------*/
2/*---------------------------------------------------------------------------*/
3// #WARNING#: This file has been generated automatically. Do not edit.
4// Axlstar version 1.0
5/*---------------------------------------------------------------------------*/
6/*---------------------------------------------------------------------------*/
7
8#ifndef ARCANE_CASEOPTION_AXLSTAR_PTSCOTCHMESHPARTITIONER_H
9#define ARCANE_CASEOPTION_AXLSTAR_PTSCOTCHMESHPARTITIONER_H
10
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/String.h"
15
16#include "arcane/CaseOptions.h"
17#include "arcane/CaseOptionsMulti.h"
18#include "arcane/CaseOptionBuildInfo.h"
19#include "arcane/XmlNodeList.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24ARCANE_BEGIN_NAMESPACE
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
30class CaseOptionsPTScotchMeshPartitioner
31{
32public:
33
34 /*-------------------------------------------------------------------------*/
35 /*--------------------------- Complex Options -----------------------------*/
36 /*-------------------------------------------------------------------------*/
37
38 /*-------------------------------------------------------------------------*/
39 /*--------------------------- Non Complex Options -------------------------*/
40 /*-------------------------------------------------------------------------*/
41
42 CaseOptionsPTScotchMeshPartitioner(Arcane::ICaseOptions* co)
43 : m_case_options(co)
44 , dumpGraph(Arcane::CaseOptionBuildInfo(_configList(),
45 /* name */ "dump-graph", _element(),
46 /* default */ "false",
47 /* min-occurs */ 1,
48 /* max-occurs */ 1,
49 /* optional */ false))
50 , checkGraph(Arcane::CaseOptionBuildInfo(_configList(),
51 /* name */ "check-graph", _element(),
52 /* default */ "false",
53 /* min-occurs */ 1,
54 /* max-occurs */ 1,
55 /* optional */ false))
56 , strategy(Arcane::CaseOptionBuildInfo(_configList(),
57 /* name */ "strategy", _element(),
58 /* default */ "",
59 /* min-occurs */ 1,
60 /* max-occurs */ 1,
61 /* optional */ false))
62 {
63
64addAlternativeNodeName(
65 /* language */ Arcane::String("fr"),
66 /* alternative name */ Arcane::String("PTScotch"));
67 }
68
69public:
70 // Interfaces for main CaseOptions
71
72 bool getDumpGraph() { return dumpGraph(); }
73 Arcane::ICaseFunction* getDumpGraphFunction() { return dumpGraph.function(); }
74 Arcane::IStandardFunction* getDumpGraphStandardFunction() { return dumpGraph.standardFunction(); }
75 bool getCheckGraph() { return checkGraph(); }
76 Arcane::ICaseFunction* getCheckGraphFunction() { return checkGraph.function(); }
77 Arcane::IStandardFunction* getCheckGraphStandardFunction() { return checkGraph.standardFunction(); }
78 Arcane::String getStrategy() { return strategy(); }
79 Arcane::ICaseFunction* getStrategyFunction() { return strategy.function(); }
80 Arcane::IStandardFunction* getStrategyStandardFunction() { return strategy.standardFunction(); }
81
82
83
84 // Interfaces for complex options
85
86
87public:
88
89 Arcane::ICaseOptions* caseOptions() const
90 {
91 return m_case_options.get();
92 }
93
94 Arcane::ICaseOptionList* configList() const
95 {
96 return m_case_options->configList();
97 }
98
99 void setCaseModule(Arcane::IModule* m)
100 {
101 m_case_options->setCaseModule(m);
102 }
103
104 void setCaseServiceInfo(Arcane::IServiceInfo* si)
105 {
106 m_case_options->setCaseServiceInfo(si);
107 }
108
109 void addAlternativeNodeName(const Arcane::String& lang,
110 const Arcane::String& name)
111 {
112 m_case_options->addAlternativeNodeName(lang,name);
113 }
114
115private:
116
117 Arcane::ICaseOptionList* _configList() const { return configList(); }
118 Arcane::XmlNode _element() const { return Arcane::XmlNode(); }
119
120private:
121
122 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
123
125
126public:
127
128
129 Arcane::CaseOptionBool dumpGraph;
130 Arcane::CaseOptionBool checkGraph;
131 Arcane::CaseOptionString strategy;
132};
133
134/*---------------------------------------------------------------------------*/
135/*---------------------------------------------------------------------------*/
136
137ARCANE_END_NAMESPACE
138
139/*---------------------------------------------------------------------------*/
140/*---------------------------------------------------------------------------*/
141
142#endif
143
144
145
146/*---------------------------------------------------------------------------*/
147/*---------------------------------------------------------------------------*/
148// #WARNING#: This file has been generated automatically. Do not edit.
149// Axlstar version 1.0
150/*---------------------------------------------------------------------------*/
151/*---------------------------------------------------------------------------*/
152
153#ifndef ARCANE_MODULE_AXLSTAR_PTSCOTCHMESHPARTITIONER_H
154#define ARCANE_MODULE_AXLSTAR_PTSCOTCHMESHPARTITIONER_H
155
156/*---------------------------------------------------------------------------*/
157/*---------------------------------------------------------------------------*/
158
159#include "arcane/VariableTypes.h"
160#include "arcane/ServiceInfo.h"
161#include "arcane/ISubDomain.h"
162#include "arcane/ServiceBuildInfo.h"
163#include "arcane/ServiceFactory.h"
164#include "arcane/ServiceRegisterer.h"
165#include "arcane/BasicService.h"
166
167#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
168// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
169// classes de base spécifiques pour les services
170namespace Arcane
171{
172using BasicCaseOptionService = BasicService;
173using BasicSubDomainService = BasicService;
174using BasicMeshService = BasicService;
175}
176#endif
177
178/*---------------------------------------------------------------------------*/
179/*---------------------------------------------------------------------------*/
180
181namespace Arcane
182{
183
184/*---------------------------------------------------------------------------*/
185/*---------------------------------------------------------------------------*/
186
187class CaseOptionsPTScotchMeshPartitioner;
188
189/*---------------------------------------------------------------------------*/
190/*---------------------------------------------------------------------------*/
191
194 : public MeshPartitionerBase
195{
196public:
197 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
198 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
199 {
200 si->setCaseOptionsFileName("PTScotchMeshPartitioner_arcane_std");
201 si->setAxlVersion(0.0);
202 si->setDefaultTagName("p-t-scotch-mesh-partitioner");
203 si->setAxlContent(getAxlContent());
204 si->setTagName("PTScotch","fr");
208);
209 }
210
211public:
212
215 : MeshPartitionerBase(sbi)
216 , m_options(nullptr)
217 {
219 if (co) {
221 }
222
223 }
224
227 {
228 delete m_options;
229 }
230
231
232public:
233
236
237private:
238
241
242protected:
243
245private:
247 {
248 const Arcane::Byte* content = (const Arcane::Byte*)"";
249 Arcane::Span<const Arcane::Byte> bytes(content,0);
250 int file_version = 1;
251 return Arcane::FileContent(bytes,file_version,"");
252 }
253};
254
255/*---------------------------------------------------------------------------*/
256/*---------------------------------------------------------------------------*/
257
258#define ARCANE_REGISTER_SERVICE_PTSCOTCHMESHPARTITIONER(service_name,class_name) \
259 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
260 Arcane::SFP_None ))
261
262/*---------------------------------------------------------------------------*/
263/*---------------------------------------------------------------------------*/
264
265} // End namespace Arcane
266
267/*---------------------------------------------------------------------------*/
268/*---------------------------------------------------------------------------*/
269
270#endif
271
#define ARCANE_SERVICE_INTERFACE(ainterface)
Macro to declare an interface when registering a service.
CaseOptionsPTScotchMeshPartitioner * m_options
Options du jeu de données du service.
ArcanePTScotchMeshPartitionerObject(const Arcane::ServiceBuildInfo &sbi)
Constructeur.
CaseOptionsPTScotchMeshPartitioner * options() const
Options du jeu de données du service.
static Arcane::FileContent getAxlContent()
Variables du service.
Base class of a service linked to a subdomain.
Information for building a dataset option.
Description and content of a file.
Definition FileContent.h:33
Interface of a dataset function.
Case manager interface.
Definition ICaseMng.h:57
Interface for a data set options list.
Interface for a list of data set options.
Interface of a mesh partitioner.
Interface of a mesh partitioner.
Interface of a module.
Definition IModule.h:40
Interface for service or module information.
Interface managing a standard function.
Information about a service.
Definition ServiceInfo.h:51
Encapsulation of a pointer with a reference counter.
static void registerToServiceInfo(ServiceInfo *si, const Interfaces &... args)
Registers the factories for the Interfaces interfaces in the service.
ICaseOptions * caseOptions() const
Access to the associated ICaseOptions.
Structure containing the information to create a service.
View of an array of elements of type T.
Definition Span.h:635
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
unsigned char Byte
Type of a byte.
Definition BaseTypes.h:43