Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
CommonVariables.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/* CommonVariables.h (C) 2000-2025 */
9/* */
10/* Common variables describing a case. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_COMMONVARIABLES_H
13#define ARCANE_CORE_COMMONVARIABLES_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/String.h"
18
19#include "arcane/core/VariableTypes.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30class ModuleMaster;
31
32/*---------------------------------------------------------------------------*/
33/*---------------------------------------------------------------------------*/
34
39class ARCANE_CORE_EXPORT CommonVariables
40{
41 public:
42
43 friend class ModuleMaster;
44
45 public:
46
50 CommonVariables(IVariableMng* variable_mng);
51 // TODO: make deprecated
54 virtual ~CommonVariables() {}
55
56 public:
57
59 Int32 globalIteration() const;
61 Real globalTime() const;
63 Real globalOldTime() const;
65 Real globalFinalTime() const;
67 Real globalDeltaT() const;
69 Real globalCPUTime() const;
71 Real globalOldCPUTime() const;
73 Real globalElapsedTime() const;
75 Real globalOldElapsedTime() const;
76
77 private:
78 public:
79
90};
91
92/*---------------------------------------------------------------------------*/
93/*---------------------------------------------------------------------------*/
94
95} // End namespace Arcane
96
97/*---------------------------------------------------------------------------*/
98/*---------------------------------------------------------------------------*/
99
100#endif
VariableScalarInt32 m_global_iteration
Current iteration.
VariableScalarReal m_global_final_time
Final time of the case.
VariableScalarReal m_global_elapsed_time
Clock time used (in seconds).
VariableScalarReal m_global_cpu_time
CPU time used (in seconds).
VariableScalarReal m_global_old_deltat
Delta T at the time previous to the global time.
virtual ~CommonVariables()
Releases resources.
VariableScalarReal m_global_old_elapsed_time
Previous clock time used (in seconds).
VariableScalarReal m_global_time
Current time.
CommonVariables(IModule *c)
Constructs the references of the common variables for the module c.
VariableScalarReal m_global_old_cpu_time
Previous CPU time used (in seconds).
VariableScalarReal m_global_old_time
Time previous to the current time.
VariableScalarReal m_global_deltat
Global Delta T.
Interface of a module.
Definition IModule.h:40
Interface of the subdomain manager.
Definition ISubDomain.h:75
Variable manager interface.
VariableRefScalarT< Int32 > VariableScalarInt32
Scalar variable of 32-bit integer type.
VariableRefScalarT< Real > VariableScalarReal
Scalar variable of real type.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
double Real
Type representing a real number.
std::int32_t Int32
Signed integer type of 32 bits.