Error class
Class for computing error estimates for mesh refinement.
Contents
- Reference
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 | |
|---|---|
| u in | Solution vector |
| edge in | Edge defined by its two end-point IDs |
| c 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:: |
| err in | AMR Error indicator type |
| Returns | Error indicator: a real number between [0...1] inclusive |