Reference documentation for deal.II version 9.1.0-pre
convergence_table.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1999 - 2017 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_convergence_table_h
17 #define dealii_convergence_table_h
18 
19 
20 #include <deal.II/base/config.h>
21 
22 #include <deal.II/base/table_handler.h>
23 
24 DEAL_II_NAMESPACE_OPEN
25 
26 
64 {
65 public:
69  ConvergenceTable() = default;
70 
74  enum RateMode
75  {
89  };
90 
133  void
134  evaluate_convergence_rates(const std::string &data_column_key,
135  const std::string &reference_column_key,
136  const RateMode rate_mode,
137  const unsigned int dim = 2);
138 
139 
156  void
157  evaluate_convergence_rates(const std::string &data_column_key,
158  const RateMode rate_mode);
159 
167  void
168  omit_column_from_convergence_rate_evaluation(const std::string &key);
169 
184  void
185  evaluate_all_convergence_rates(const std::string &reference_column_key,
186  const RateMode rate_mode);
187 
201  void
202  evaluate_all_convergence_rates(const RateMode rate_mode);
203 
213  std::string,
214  << "Rate column <" << arg1 << "> does already exist.");
216 };
217 
218 
219 DEAL_II_NAMESPACE_CLOSE
220 
221 #endif
static::ExceptionBase & ExcRateColumnAlreadyExists(std::string arg1)
ConvergenceTable()=default
void omit_column_from_convergence_rate_evaluation(const std::string &key)
void evaluate_all_convergence_rates(const std::string &reference_column_key, const RateMode rate_mode)
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:408
void evaluate_convergence_rates(const std::string &data_column_key, const std::string &reference_column_key, const RateMode rate_mode, const unsigned int dim=2)