AMR::Error class

Class for computing error estimates for mesh refinement.

Contents

Public functions

auto scalar(const tk::Fields& u, const edge_t& edge, ncomp_t c, const std::array<std::vector<tk::real>, 3>& coord, const std::vector<std::size_t>& inpoel, const std::pair<std::vector<std::size_t>, std::vector<std::size_t>>& esup, inciter::ctr::AMRErrorType err) const -> tk::real
Compute error estimate for a scalar quantity.

Function documentation

tk::real AMR::Error::scalar(const tk::Fields& u, const edge_t& edge, ncomp_t c, const std::array<std::vector<tk::real>, 3>& coord, const std::vector<std::size_t>& inpoel, const std::pair<std::vector<std::size_t>, std::vector<std::size_t>>& esup, inciter::ctr::AMRErrorType err) const

Compute error estimate for a scalar quantity.

Parameters
in Solution vector
edge in Edge defined by its two end-point IDs
in Scalar component to compute error of
coord in Mesh node coordinates
inpoel in Mesh element connectivity
esup in Linked lists storing elements surrounding points, see tk::genEsup()
err in AMR Error indicator type
Returns Error indicator: a real number between [0...1] inclusive