ASPECT
ODE_statistics.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) 2024-2025 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_postprocess_ODE_statistics_h
17 #define _aspect_postprocess_ODE_statistics_h
18 
21 
22 namespace aspect
23 {
24  namespace Postprocess
25  {
26 
32  template <int dim>
33  class ODEStatistics : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
34  {
35  public:
39  void initialize() override;
40 
44  std::pair<std::string,std::string>
45  execute (TableHandler &statistics) override;
46 
51  template <class Archive>
52  void serialize (Archive &ar, const unsigned int version);
53 
57  void save (std::map<std::string, std::string> &status_strings) const override;
58 
62  void load (const std::map<std::string, std::string> &status_strings) override;
63 
64  private:
70  void
71  clear_data();
72 
77  void
78  store_ODE_solver_history(const unsigned int iteration_count);
79 
86  unsigned int total_iteration_count;
87  unsigned int number_of_solves;
88  };
89  }
90 }
91 
92 
93 #endif
void load(const std::map< std::string, std::string > &status_strings) override
void serialize(Archive &ar, const unsigned int version)
void store_ODE_solver_history(const unsigned int iteration_count)
std::pair< std::string, std::string > execute(TableHandler &statistics) override
void save(std::map< std::string, std::string > &status_strings) const override