8#ifndef ARCANE_CASEOPTION_AXLSTAR_ARCANETEST_ALEPHINDEXTEST_H
9#define ARCANE_CASEOPTION_AXLSTAR_ARCANETEST_ALEPHINDEXTEST_H
14#include "arcane/utils/String.h"
16#include "arcane/CaseOptions.h"
17#include "arcane/CaseOptionsMulti.h"
18#include "arcane/CaseOptionBuildInfo.h"
19#include "arcane/XmlNodeList.h"
20#include "arcane/ItemGroup.h"
41class CaseOptionsAlephIndexTest
50 class CaseOptionBoundaryConditionValue
55 typedef CaseOptionBoundaryConditionValue ThatClass;
66 "surface", _element(),
92 const ThatClass* operator->()
const {
return this; }
96 Arcane::CaseOptionReal value;
101 class CaseOptionBoundaryCondition
120 BaseClass operator()() {
return (*
this); }
128 v =
new value_type*[s];
132 v[i] =
new value_type(
this,configList(),elist[i]);
138 ~CaseOptionBoundaryCondition()
142 value_type** v =
_ptr();
170 "iterations", _element(),
176 "aleph-number-of-solvers", _element(),
182 "deltaT", _element(),
188 "init-temperature", _element(),
193 , boundaryCondition(_configList(),
194 "boundary-condition", _element())
204 Arcane::IStandardFunction* getIterationsStandardFunction() {
return iterations.standardFunction(); }
205 Arcane::Integer getAlephNumberOfSolvers() {
return alephNumberOfSolvers(); }
206 Arcane::ICaseFunction* getAlephNumberOfSolversFunction() {
return alephNumberOfSolvers.function(); }
207 Arcane::IStandardFunction* getAlephNumberOfSolversStandardFunction() {
return alephNumberOfSolvers.standardFunction(); }
209 Arcane::ICaseFunction* getDeltaTFunction() {
return deltaT.function(); }
210 Arcane::IStandardFunction* getDeltaTStandardFunction() {
return deltaT.standardFunction(); }
211 Arcane::Real getInitTemperature() {
return initTemperature(); }
212 Arcane::ICaseFunction* getInitTemperatureFunction() {
return initTemperature.function(); }
213 Arcane::IStandardFunction* getInitTemperatureStandardFunction() {
return initTemperature.standardFunction(); }
222 Arcane::ICaseOptions* caseOptions()
const
224 return m_case_options.get();
227 Arcane::ICaseOptionList* configList()
const
229 return m_case_options->configList();
232 void setCaseModule(Arcane::IModule* m)
234 m_case_options->setCaseModule(m);
237 void setCaseServiceInfo(Arcane::IServiceInfo* si)
239 m_case_options->setCaseServiceInfo(si);
242 void addAlternativeNodeName(
const Arcane::String& lang,
243 const Arcane::String& name)
245 m_case_options->addAlternativeNodeName(lang,name);
250 Arcane::ICaseOptionList* _configList()
const {
return configList(); }
251 Arcane::XmlNode _element()
const {
return Arcane::XmlNode(); }
255 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
257 Arcane::ReferenceCounter<Arcane::ICaseOptions> m_case_options;
262 Arcane::CaseOptionInteger iterations;
263 Arcane::CaseOptionInteger alephNumberOfSolvers;
264 Arcane::CaseOptionReal deltaT;
265 Arcane::CaseOptionReal initTemperature;
288#ifndef ARCANE_MODULE_AXLSTAR_ARCANETEST_ALEPHINDEXTEST_H
289#define ARCANE_MODULE_AXLSTAR_ARCANETEST_ALEPHINDEXTEST_H
294#include "arcane/VariableTypes.h"
295#include "arcane/EntryPoint.h"
296#include "arcane/ISubDomain.h"
297#include "arcane/ModuleBuildInfo.h"
298#include "arcane/ModuleFactory.h"
299#include "arcane/ServiceRegisterer.h"
300#include "arcane/BasicModule.h"
301#include "arcane/ServiceInfo.h"
315namespace ArcaneTest {
326class ArcaneAlephIndexTestObject
333 si->setCaseOptionsFileName(
"AlephIndexTest_arcane_aleph_tests");
334 si->setAxlVersion(1.0);
336 si->setAxlContent(getAxlContent());
355 &ArcaneAlephIndexTestObject::compute,
360 virtual ~ArcaneAlephIndexTestObject()
369 virtual void compute() = 0;
389 const char* str_content =
"";
392 int file_version = 1;
401#define ARCANE_REGISTER_MODULE_ALEPHINDEXTEST(class_name) \
402 ARCANE_REGISTER_AXL_MODULE(class_name,Arcane::ModuleProperty("AlephIndexTest",false))
CaseOptionsAlephIndexTest * options() const
Options du jeu de données du module.
Arcane::VariableCellReal m_cell_temperature
Variables du module.
CaseOptionsAlephIndexTest * m_options
Options du jeu de données du module.
virtual void init()=0
points d'entrée
Modifiable view of an array of type T.
constexpr pointer _ptr() noexcept
void _setArray(pointer v, Integer s) noexcept
CaseOptionBoundaryConditionValue * value_type
constexpr reference operator[](Integer i)
constexpr Integer size() const noexcept
Base class for a data set option.
Information for building a dataset option.
Base class for a complex option value.
Option for the extended type dataset.
ICaseFunction * function() const override
Function associated with this option (0 if none).
Base class for an array of complex data set options.
Base class for a data set options list.
Description and content of a file.
Interface of a dataset function.
Interface for a data set options list.
Interface for a list of options that appears multiple times.
static const char *const WComputeLoop
called during the calculation loop
static const char *const WInit
called during initialization
Interface managing a standard function.
Interface of the subdomain manager.
virtual ICaseMng * caseMng()=0
Returns the dataset manager.
@ PNoNeedSync
Indicates that the variable is not necessarily synchronized.
@ PNoDump
Indicates that the variable should not be saved.
Information about a service.
Information for building a module.
ISubDomain * subDomain() const
Access to the associated subdomain.
View of an array of elements of type T.
Unicode character string.
Parameters necessary for building a variable.
List of nodes of a DOM tree.
ItemGroupT< Face > FaceGroup
Group of faces.
MeshVariableScalarRefT< Face, Real > VariableFaceReal
Real type quantity at face.
MeshVariableScalarRefT< Cell, Real > VariableCellReal
Real type quantity at cell center.
-- 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.
unsigned char Byte
Type of a byte.
void addEntryPoint(ModuleType *module, const char *name, void(ModuleType::*func)(), const String &where=IEntryPoint::WComputeLoop, int property=IEntryPoint::PNone)
Template routine allowing an entry point to be referenced in a module.