Arcane
v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
TemporaryVariableBuildInfo.cc
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
/* TemporaryVariableBuildInfo.cc (C) 2000-2020 */
9
/* */
10
/* Informations pour construire une variable temporaire. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/TemporaryVariableBuildInfo.h"
15
#include "arcane/IModule.h"
16
#include "arcane/IVariable.h"
17
#include "arcane/IMesh.h"
18
19
/*---------------------------------------------------------------------------*/
20
/*---------------------------------------------------------------------------*/
21
22
namespace
Arcane
23
{
24
25
/*---------------------------------------------------------------------------*/
26
/*---------------------------------------------------------------------------*/
27
28
TemporaryVariableBuildInfo::
29
TemporaryVariableBuildInfo
(
IModule
* m,
const
String
& name)
30
:
VariableBuildInfo
(m,_generateName(m->subDomain()->variableMng(),name),property())
31
{
32
}
33
34
/*---------------------------------------------------------------------------*/
35
/*---------------------------------------------------------------------------*/
36
37
TemporaryVariableBuildInfo::
38
TemporaryVariableBuildInfo
(
ISubDomain
*
sd
,
const
String
& name)
39
:
VariableBuildInfo
(
sd
,_generateName(
sd
->variableMng(),name),property())
40
{
41
}
42
43
/*---------------------------------------------------------------------------*/
44
/*---------------------------------------------------------------------------*/
45
46
TemporaryVariableBuildInfo::
47
TemporaryVariableBuildInfo
(
IModule
* m,
const
String
& name,
const
String
&
item_family_name
)
48
:
VariableBuildInfo
(m,_generateName(m->subDomain()->variableMng(),name),
item_family_name
,property())
49
{
50
}
51
52
/*---------------------------------------------------------------------------*/
53
/*---------------------------------------------------------------------------*/
54
55
TemporaryVariableBuildInfo::
56
TemporaryVariableBuildInfo
(
IMesh
* mesh,
const
String
& name)
57
:
VariableBuildInfo
(mesh,_generateName(mesh->variableMng(),name),property())
58
{
59
}
60
61
/*---------------------------------------------------------------------------*/
62
/*---------------------------------------------------------------------------*/
63
64
TemporaryVariableBuildInfo::
65
TemporaryVariableBuildInfo
(
IMesh
* mesh,
const
String
& name,
const
String
&
item_family_name
)
66
:
VariableBuildInfo
(mesh,_generateName(mesh->variableMng(),name),
item_family_name
,property())
67
{
68
}
69
70
/*---------------------------------------------------------------------------*/
71
/*---------------------------------------------------------------------------*/
72
73
int
TemporaryVariableBuildInfo::
74
property()
75
{
76
return
IVariable::PTemporary
|
IVariable::PNoDump
|
IVariable::PNoRestore
;
77
}
78
79
/*---------------------------------------------------------------------------*/
80
/*---------------------------------------------------------------------------*/
81
82
String TemporaryVariableBuildInfo::
83
_generateName(IVariableMng* vm,
const
String& name)
84
{
85
ARCANE_UNUSED(vm);
86
return
name;
87
}
88
89
/*---------------------------------------------------------------------------*/
90
/*---------------------------------------------------------------------------*/
91
92
}
// End namespace Arcane
93
94
/*---------------------------------------------------------------------------*/
95
/*---------------------------------------------------------------------------*/
96
Arcane::IMesh
Definition
IMesh.h:59
Arcane::IModule
Interface d'un module.
Definition
IModule.h:39
Arcane::ISubDomain
Interface du gestionnaire d'un sous-domaine.
Definition
ISubDomain.h:74
Arcane::IVariable::PTemporary
@ PTemporary
Indique que la variable est temporaire.
Definition
IVariable.h:126
Arcane::IVariable::PNoRestore
@ PNoRestore
Indique que la variable ne doit pas être restaurée.
Definition
IVariable.h:133
Arcane::IVariable::PNoDump
@ PNoDump
Indique que la variable ne doit pas être sauvegardée.
Definition
IVariable.h:72
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
Arcane::TemporaryVariableBuildInfo::TemporaryVariableBuildInfo
TemporaryVariableBuildInfo(IModule *m, const String &name)
Construit un initialiseur pour une variable.
Definition
TemporaryVariableBuildInfo.cc:29
Arcane::VariableBuildInfo
Paramètres nécessaires à la construction d'une variable.
Definition
VariableBuildInfo.h:43
Arccore::String
Chaîne de caractères unicode.
Definition
arccore/src/base/arccore/base/String.h:70
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AcceleratorGlobal.h:36
arcane
core
TemporaryVariableBuildInfo.cc
Généré le Lundi 18 Novembre 2024 03:01:05 pour Arcane par
1.9.8