GEOS
HaltEvent.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2024 TotalEnergies
7  * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University
8  * Copyright (c) 2023-2024 Chevron
9  * Copyright (c) 2019- GEOS/GEOSX Contributors
10  * All rights reserved
11  *
12  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
13  * ------------------------------------------------------------------------------------------------------------
14  */
15 
21 #ifndef GEOS_EVENTS_HALTEVENT_HPP_
22 #define GEOS_EVENTS_HALTEVENT_HPP_
23 
24 #include "events/EventBase.hpp"
25 
26 namespace geos
27 {
28 
34 class HaltEvent : public EventBase
35 {
36 public:
42  HaltEvent( const string & name,
43  Group * const parent );
44 
46  virtual ~HaltEvent() override;
47 
52  static string catalogName() { return "HaltEvent"; }
53 
60  virtual void estimateEventTiming( real64 const time,
61  real64 const dt,
62  integer const cycle,
63  DomainPartition & domain ) override;
72 
74  struct viewKeyStruct
75  {
76  static constexpr char const * maxRuntimeString() { return "maxRuntime"; }
77 
78  dataRepository::ViewKey maxRuntime = { maxRuntimeString() };
79  } haltEventViewKeys;
81 
82 };
83 
84 } /* namespace geos */
85 
86 #endif /* GEOS_EVENTS_HALTEVENT_HPP_ */
Partition of the decomposed physical domain. It also manages the connexion information to its neighbo...
real64 m_maxRuntime
Max runtime.
Definition: HaltEvent.hpp:71
real64 m_externalLastTime
External last time.
Definition: HaltEvent.hpp:67
static string catalogName()
Catalog name interface.
Definition: HaltEvent.hpp:52
virtual void estimateEventTiming(real64 const time, real64 const dt, integer const cycle, DomainPartition &domain) override
Perform the calculations to estimate the timing of the event.
real64 m_externalStartTime
External start time.
Definition: HaltEvent.hpp:65
virtual ~HaltEvent() override
Destructor.
HaltEvent(const string &name, Group *const parent)
Main constructor.
real64 m_externalDt
External time increment.
Definition: HaltEvent.hpp:69
Group::wrapperMap::KeyIndex ViewKey
Type alias for KeyIndexT type used for wrapper lookups.
Definition: Group.hpp:1662
double real64
64-bit floating point type.
Definition: DataTypes.hpp:99
std::int32_t integer
Signed integer type.
Definition: DataTypes.hpp:82
Structure to hold scoped key names.
Definition: Group.hpp:1442