15#ifndef dealii_base_parsed_convergence_table_h
16#define dealii_base_parsed_convergence_table_h
261 template <
int dim,
int spacedim,
typename VectorType>
264 const VectorType &solution,
271 template <
int dim,
int spacedim,
typename VectorType>
275 const VectorType &solution,
353 template <
int dim,
int spacedim,
typename VectorType>
363 template <
int dim,
int spacedim,
typename VectorType>
413 std::map<std::string, std::pair<std::function<double()>,
bool>>
469template <
int dim,
int spacedim,
typename VectorType>
489template <
int dim,
int spacedim,
typename VectorType>
511template <
int dim,
int spacedim,
typename VectorType>
514 const VectorType &solution,
527template <
int dim,
int spacedim,
typename VectorType>
531 const VectorType &solution,
543 dh.get_triangulation().n_global_active_cells();
544 const unsigned int n_dofs = dh.n_dofs();
553 else if (col ==
"dofs")
570 if (weight !=
nullptr)
572 if (weight->n_components == 1)
575 f = [&](
const Point<spacedim> &p) {
return weight->value(p); };
580 for (
unsigned int i = 0; i < n_components; ++i)
582 return weight->value(p, i);
589 std::map<VectorTools::NormType, double>
errors;
599 for (
unsigned int j = 0;
j < n_components; ++
j)
607 dh.get_triangulation().n_global_active_cells());
611 for (
const auto &norm :
norms)
The ParsedConvergenceTable class.
void add_extra_column(const std::string &column_name, const std::function< double()> &custom_function, const bool compute_rate=true)
void difference(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &, const VectorType &, const VectorType &, const Function< spacedim > *weight=nullptr)
void difference(const DoFHandler< dim, spacedim > &, const VectorType &, const VectorType &, const Function< spacedim > *weight=nullptr)
void add_parameters(ParameterHandler &prm)
void error_from_exact(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &vspace, const VectorType &solution, const Function< spacedim > &exact, const Function< spacedim > *weight=nullptr)
void error_from_exact(const DoFHandler< dim, spacedim > &vspace, const VectorType &solution, const Function< spacedim > &exact, const Function< spacedim > *weight=nullptr)
std::string error_file_name
void prepare_table_for_output()
const std::vector< std::string > component_names
std::set< std::string > extra_columns
const std::vector< std::string > unique_component_names
std::vector< std::set< VectorTools::NormType > > norms_per_unique_component
const std::vector< ComponentMask > unique_component_masks
std::map< std::string, std::pair< std::function< double()>, bool > > extra_column_functions
void set_tex_format(const std::string &key, const std::string &format="c")
void add_value(const std::string &key, const T value)
void set_tex_caption(const std::string &key, const std::string &tex_caption)
void set_scientific(const std::string &key, const bool scientific)
void set_precision(const std::string &key, const unsigned int precision)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define AssertDimension(dim1, dim2)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
#define AssertThrow(cond, exc)
const Mapping< dim, spacedim > & get_default_linear_mapping(const Triangulation< dim, spacedim > &triangulation)
Tpetra::Vector< Number, LO, GO, NodeType< MemorySpace > > VectorType
double norm(const FEValuesBase< dim > &fe, const ArrayView< const std::vector< Tensor< 1, dim > > > &Du)
unsigned int n_active_cells(const internal::TriangulationImplementation::NumberCache< 1 > &c)