GEOSX
HaltEvent.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 Total, S.A
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 
20 #ifndef GEOSX_MANAGERS_EVENTS_HALTEVENT_HPP_
21 #define GEOSX_MANAGERS_EVENTS_HALTEVENT_HPP_
22 
24 
25 namespace geosx
26 {
27 
33 class HaltEvent : public EventBase
34 {
35 public:
41  HaltEvent( const std::string & name,
42  Group * const parent );
43 
45  virtual ~HaltEvent() override;
46 
51  static string CatalogName() { return "HaltEvent"; }
52 
59  virtual void EstimateEventTiming( real64 const time,
60  real64 const dt,
61  integer const cycle,
62  dataRepository::Group * domain ) override;
71 
73  struct viewKeyStruct
74  {
75  static constexpr auto maxRuntimeString = "maxRuntime";
76 
77  dataRepository::ViewKey maxRuntime = { "maxRuntime" };
78  } haltEventViewKeys;
80 
81 };
82 
83 } /* namespace geosx */
84 
85 #endif /* GEOSX_MANAGERS_EVENTS_HALTEVENT_HPP_ */
real64 m_maxRuntime
Max runtime.
Definition: HaltEvent.hpp:70
real64 m_externalLastTime
External last time.
Definition: HaltEvent.hpp:66
virtual ~HaltEvent() override
Destructor.
double real64
64-bit floating point type.
Definition: DataTypes.hpp:136
Group::wrapperMap::KeyIndex ViewKey
Type alias for KeyIndexT type used for wrapper lookups.
Definition: Group.hpp:1545
real64 m_externalStartTime
External start time.
Definition: HaltEvent.hpp:64
std::int32_t integer
Signed integer type.
Definition: DataTypes.hpp:122
real64 m_externalDt
External time increment.
Definition: HaltEvent.hpp:68
std::string string
String type.
Definition: DataTypes.hpp:131
HaltEvent(const std::string &name, Group *const parent)
Main constructor.
static string CatalogName()
Catalog name interface.
Definition: HaltEvent.hpp:51
virtual void EstimateEventTiming(real64 const time, real64 const dt, integer const cycle, dataRepository::Group *domain) override
Perform the calculations to estimate the timing of the event.