Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MeshTimeHistoryAdder.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2024 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/* MeshTimeHistoryAdder.cc (C) 2000-2024 */
9/* */
10/* Classe permettant d'ajouter un historique de valeur lié à un maillage. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/core/MeshTimeHistoryAdder.h"
15#include "arcane/core/internal/ITimeHistoryMngInternal.h"
16
17/*---------------------------------------------------------------------------*/
18/*---------------------------------------------------------------------------*/
19
20namespace Arcane
21{
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
28: m_thm(time_history_mng)
29, m_mesh_handle(mesh_handle)
30{
31 m_thm->_internalApi()->setIOMasterWriteOnly(true);
32}
33
35addValue(const TimeHistoryAddValueArg& thp, Real value)
36{
37 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp, m_mesh_handle), value);
38}
39
41addValue(const TimeHistoryAddValueArg& thp, Int64 value)
42{
43 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp, m_mesh_handle), value);
44}
45
47addValue(const TimeHistoryAddValueArg& thp, Int32 value)
48{
49 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp, m_mesh_handle), value);
50}
51
54{
55 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp, m_mesh_handle), values);
56}
57
60{
61 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp, m_mesh_handle), values);
62}
63
66{
67 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp, m_mesh_handle), values);
68}
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73} // End namespace Arcane
74
75/*---------------------------------------------------------------------------*/
76/*---------------------------------------------------------------------------*/
Classe gérant un historique de valeurs.
virtual ITimeHistoryMngInternal * _internalApi()
API interne à Arcane.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Handle sur un maillage.
Definition MeshHandle.h:47
MeshTimeHistoryAdder(ITimeHistoryMng *time_history_mng, const MeshHandle &mesh_handle)
Constructeur.
void addValue(const TimeHistoryAddValueArg &thp, Real value) override
Méthode permettant d'ajouter une valeur à un historique.
Classe étendant les arguments lors d'un ajout de valeur dans un historique de valeur.
Vue constante d'un tableau de type T.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-