ASPECT
end_walltime.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_walltime_h
17 #define _aspect_termination_criteria_end_walltime_h
18 
20 #include <aspect/simulator.h>
21 
22 namespace aspect
23 {
24  namespace TerminationCriteria
25  {
26 
33  template <int dim>
34  class EndWalltime : public Interface<dim>, public SimulatorAccess<dim>
35  {
36  public:
37 
44  bool
45  execute () override;
46 
50  static
51  void
53 
57  void
58  parse_parameters (ParameterHandler &prm) override;
59 
60  private:
68  unsigned int walltime_duration;
69 
76  static std::time_t start_walltime;
77  };
78  }
79 }
80 
81 #endif
static void declare_parameters(ParameterHandler &prm)
void parse_parameters(ParameterHandler &prm) override