Arcane
v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
CheckpointService.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
/* CheckpointService.cc (C) 2000-2007 */
9
/* */
10
/* Service de protection/reprise. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/utils/ArcanePrecomp.h"
15
16
#include "arcane/CheckpointService.h"
17
18
#include "arcane/IDataReader2.h"
19
20
/*---------------------------------------------------------------------------*/
21
/*---------------------------------------------------------------------------*/
22
23
ARCANE_BEGIN_NAMESPACE
24
25
/*---------------------------------------------------------------------------*/
26
/*---------------------------------------------------------------------------*/
27
28
CheckpointService::
29
CheckpointService(
const
ServiceBuildInfo& sbi)
30
: BasicService(sbi)
31
, m_current_time(-1.)
32
, m_current_index(-1)
33
{
34
}
35
36
void
CheckpointService::
37
setCheckpointTimes(
RealConstArrayView
times)
38
{
39
m_checkpoint_times =
RealUniqueArray
(times);
40
}
41
42
/*---------------------------------------------------------------------------*/
43
/*---------------------------------------------------------------------------*/
44
45
void
CheckpointService::
46
setCurrentTimeAndIndex(Real current_time,Integer current_index)
47
{
48
m_current_time = current_time;
49
m_current_index = current_index;
50
}
51
52
/*---------------------------------------------------------------------------*/
53
/*---------------------------------------------------------------------------*/
54
55
ARCANE_END_NAMESPACE
56
57
/*---------------------------------------------------------------------------*/
58
/*---------------------------------------------------------------------------*/
Arccore::ConstArrayView
Vue constante d'un tableau de type T.
Definition
arccore/src/base/arccore/base/ArrayView.h:533
Arccore::UniqueArray
Vecteur 1D de données avec sémantique par valeur (style STL).
Definition
arccore/src/collections/arccore/collections/Array.h:1807
arcane
core
CheckpointService.cc
Généré le Lundi 18 Novembre 2024 02:56:48 pour Arcane par
1.9.8