ASPECT
end_time.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2011-2026 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 
16 #ifndef _aspect_termination_criteria_end_time_h
17 #define _aspect_termination_criteria_end_time_h
18 
21 
22 namespace aspect
23 {
24  namespace TerminationCriteria
25  {
26 
33  template <int dim>
34  class EndTime : public Interface<dim>, public SimulatorAccess<dim>
35  {
36  public:
37 
41  double check_for_last_time_step (const double time_step) const override;
42 
49  bool
50  execute () override;
51 
55  static
56  void
58 
62  void
63  parse_parameters (ParameterHandler &prm) override;
64 
65  private:
70  double end_time;
71  };
72  }
73 }
74 
75 #endif
double check_for_last_time_step(const double time_step) const override
void parse_parameters(ParameterHandler &prm) override
static void declare_parameters(ParameterHandler &prm)