Arcane  v3.14.10.0
Documentation développeur
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
23ARCANE_BEGIN_NAMESPACE
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28CheckpointService::
29CheckpointService(const ServiceBuildInfo& sbi)
30: BasicService(sbi)
31, m_current_time(-1.)
32, m_current_index(-1)
33{
34}
35
36void CheckpointService::
37setCheckpointTimes(RealConstArrayView times)
38{
39 m_checkpoint_times = RealUniqueArray(times);
40}
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
45void CheckpointService::
46setCurrentTimeAndIndex(Real current_time,Integer current_index)
47{
48 m_current_time = current_time;
49 m_current_index = current_index;
50}
51
52/*---------------------------------------------------------------------------*/
53/*---------------------------------------------------------------------------*/
54
55ARCANE_END_NAMESPACE
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Vue constante d'un tableau de type T.
Vecteur 1D de données avec sémantique par valeur (style STL).