28 const unsigned int dim)
34 if (rate_mode ==
none)
41 const std::vector<internal::TableEntry> &entries =
43 const std::vector<internal::TableEntry> &
ref_entries =
47 const unsigned int n = entries.size();
51 std::vector<double> values(n);
54 for (
unsigned int i = 0; i < n; ++i)
56 values[i] = entries[i].get_numeric_value();
66 rate_key +=
"red.rate";
85 rate_key +=
"red.rate.log2";
98 dim *
std::log(std::fabs(values[i - 1] / values[i])) /
138 const std::vector<internal::TableEntry> &entries =
142 const unsigned int n = entries.size();
144 std::vector<double> values(n);
145 for (
unsigned int i = 0; i < n; ++i)
146 values[i] = entries[i].get_numeric_value();
156 rate_key +=
"red.rate";
168 add_value(rate_key, values[i - 1] / values[i]);
174 rate_key +=
"red.rate.log2";
187 std::log(std::fabs(values[i - 1] / values[i])) /
222 const std::string &
key)
237 for (std::map<std::string, Column>::const_iterator
col_iter =
columns.begin();
251 for (std::map<std::string, Column>::const_iterator
col_iter =
columns.begin();
void evaluate_all_convergence_rates(const std::string &reference_column_key, const RateMode rate_mode)
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)
void omit_column_from_convergence_rate_evaluation(const std::string &key)
void set_tex_supercaption(const std::string &superkey, const std::string &tex_supercaption)
void set_auto_fill_mode(const bool state)
void add_value(const std::string &key, const T value)
std::map< std::string, std::vector< std::string > > supercolumns
void add_column_to_supercolumn(const std::string &key, const std::string &superkey)
void set_precision(const std::string &key, const unsigned int precision)
std::map< std::string, Column > columns
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcColumnNotExistent(std::string arg1)
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
#define AssertThrow(cond, exc)
::VectorizedArray< Number, width > log(const ::VectorizedArray< Number, width > &)