Arcane
4.1.12.0
User documentation
Loading...
Searching...
No Matches
GlobalTimeHistoryAdder.cc
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
/* GlobalTimeHistoryAdder.cc (C) 2000-2024 */
9
/* */
10
/* Class allowing the addition of a global value history. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/core/GlobalTimeHistoryAdder.h"
15
#include "arcane/core/internal/ITimeHistoryMngInternal.h"
16
17
/*---------------------------------------------------------------------------*/
18
/*---------------------------------------------------------------------------*/
19
20
namespace
Arcane
21
{
22
23
/*---------------------------------------------------------------------------*/
24
/*---------------------------------------------------------------------------*/
25
26
GlobalTimeHistoryAdder::
27
GlobalTimeHistoryAdder
(
ITimeHistoryMng
* time_history_mng)
28
: m_thm(time_history_mng)
29
{
30
m_thm->_internalApi()->setIOMasterWriteOnly(
true
);
31
}
32
33
void
GlobalTimeHistoryAdder::
34
addValue
(
const
TimeHistoryAddValueArg
& thp,
Real
value)
35
{
36
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
37
}
38
39
void
GlobalTimeHistoryAdder::
40
addValue
(
const
TimeHistoryAddValueArg
& thp,
Int64
value)
41
{
42
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
43
}
44
45
void
GlobalTimeHistoryAdder::
46
addValue
(
const
TimeHistoryAddValueArg
& thp,
Int32
value)
47
{
48
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
49
}
50
51
void
GlobalTimeHistoryAdder::
52
addValue
(
const
TimeHistoryAddValueArg
& thp,
RealConstArrayView
values)
53
{
54
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
55
}
56
57
void
GlobalTimeHistoryAdder::
58
addValue
(
const
TimeHistoryAddValueArg
& thp,
Int32ConstArrayView
values)
59
{
60
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
61
}
62
63
void
GlobalTimeHistoryAdder::
64
addValue
(
const
TimeHistoryAddValueArg
& thp,
Int64ConstArrayView
values)
65
{
66
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
67
}
68
69
/*---------------------------------------------------------------------------*/
70
/*---------------------------------------------------------------------------*/
71
72
}
// End namespace Arcane
73
74
/*---------------------------------------------------------------------------*/
75
/*---------------------------------------------------------------------------*/
Arcane::GlobalTimeHistoryAdder::GlobalTimeHistoryAdder
GlobalTimeHistoryAdder(ITimeHistoryMng *time_history_mng)
Constructor.
Definition
GlobalTimeHistoryAdder.cc:27
Arcane::GlobalTimeHistoryAdder::addValue
void addValue(const TimeHistoryAddValueArg &thp, Real value) override
Method allowing the addition of a value to a history.
Definition
GlobalTimeHistoryAdder.cc:34
Arcane::ITimeHistoryMng
Class managing a history of values.
Definition
ITimeHistoryMng.h:130
Arcane::TimeHistoryAddValueArg
Definition
ITimeHistoryMng.h:34
Arcane
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Definition
AbstractCaseDocumentVisitor.cc:21
Arcane::Int64
std::int64_t Int64
Signed integer type of 64 bits.
Definition
ArccoreGlobal.h:235
Arcane::Int32ConstArrayView
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
Definition
UtilsTypes.h:482
Arcane::Int64ConstArrayView
ConstArrayView< Int64 > Int64ConstArrayView
C equivalent of a 1D array of 64-bit integers.
Definition
UtilsTypes.h:480
Arcane::Real
double Real
Type representing a real number.
Definition
ArccoreGlobal.h:275
Arcane::Int32
std::int32_t Int32
Signed integer type of 32 bits.
Definition
ArccoreGlobal.h:233
Arcane::RealConstArrayView
ConstArrayView< Real > RealConstArrayView
C equivalent of a 1D array of reals.
Definition
UtilsTypes.h:488
arcane
core
GlobalTimeHistoryAdder.cc
Generated on
for Arcane by
1.16.1