GEOSX
RestartOutput.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
7  * Copyright (c) 2018-2020 TotalEnergies
8  * Copyright (c) 2019- GEOSX Contributors
9  * All rights reserved
10  *
11  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
12  * ------------------------------------------------------------------------------------------------------------
13  */
14 
19 #ifndef GEOS_FILEIO_OUTPUTS_RESTARTOUTPUT_HPP_
20 #define GEOS_FILEIO_OUTPUTS_RESTARTOUTPUT_HPP_
21 
22 #include "OutputBase.hpp"
23 
24 
25 namespace geos
26 {
27 
34 class RestartOutput : public OutputBase
35 {
36 public:
38  RestartOutput( string const & name,
39  Group * const parent );
40 
42  virtual ~RestartOutput() override;
43 
48  static string catalogName() { return "Restart"; }
49 
54  virtual bool execute( real64 const time_n,
55  real64 const dt,
56  integer const cycleNumber,
57  integer const eventCounter,
58  real64 const eventProgress,
59  DomainPartition & domain ) override;
60 
65  virtual void cleanup( real64 const time_n,
66  integer const cycleNumber,
67  integer const eventCounter,
68  real64 const eventProgress,
69  DomainPartition & domain ) override
70  {
71  execute( time_n, 0, cycleNumber, eventCounter, eventProgress, domain );
72  }
73 
75  struct viewKeyStruct
76  {
77  dataRepository::ViewKey writeFEMFaces = { "writeFEMFaces" };
78  } viewKeys;
80 };
81 
82 
83 } /* namespace geos */
84 
85 #endif /* GEOS_FILEIO_OUTPUTS_RESTARTOUTPUT_HPP_ */
Partition of the decomposed physical domain. It also manages the connexion information to its neighbo...
virtual bool execute(real64 const time_n, real64 const dt, integer const cycleNumber, integer const eventCounter, real64 const eventProgress, DomainPartition &domain) override
Writes out a restart file.
virtual void cleanup(real64 const time_n, integer const cycleNumber, integer const eventCounter, real64 const eventProgress, DomainPartition &domain) override
Write one final restart file as the code exits.
virtual ~RestartOutput() override
Destructor.
static string catalogName()
Catalog name interface.
RestartOutput(string const &name, Group *const parent)
Constructor.
Group::wrapperMap::KeyIndex ViewKey
Type alias for KeyIndexT type used for wrapper lookups.
Definition: Group.hpp:1625
double real64
64-bit floating point type.
Definition: DataTypes.hpp:139
std::int32_t integer
Signed integer type.
Definition: DataTypes.hpp:122