ASPECT
entropy_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) 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_entropy_statistics_h
17 #define _aspect_postprocess_entropy_statistics_h
18 
21 
22 namespace aspect
23 {
24  namespace Postprocess
25  {
26 
33  template <int dim>
34  class EntropyStatistics : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
35  {
36  public:
40  void initialize() override;
41 
45  std::pair<std::string,std::string>
46  execute (TableHandler &statistics) override;
47 
48  private:
53  void
54  store_entropy_solver_history(unsigned int iteration_count);
55 
62  unsigned int total_iteration_count;
63  unsigned int number_of_solves;
64  };
65  }
66 }
67 
68 
69 #endif
std::pair< std::string, std::string > execute(TableHandler &statistics) override
void store_entropy_solver_history(unsigned int iteration_count)