#include <Hanging_vertex_matcher.hpp>
Public Member Functions | |
Hanging_vertex_matcher (std::vector< Element * > fine_elements, int i_dim, bool is_positive, std::array< bool, 2 > stretch={false, false}) | |
void | match (std::function< double &(Element &, int i_vertex)>) |
When hanging nodes are present, data at the hanging vertices (a.k.a. "hanging nodes") must match data on the coarse face, interpolated to the location of the hanging vertices. This class ensures that is the case by performing the necessary interpolation.
hexed::Hanging_vertex_matcher::Hanging_vertex_matcher | ( | std::vector< Element * > | fine_elements, |
int | i_dim, | ||
bool | is_positive, | ||
std::array< bool, 2 > | stretch = {false, false} ) |
void hexed::Hanging_vertex_matcher::match | ( | std::function< double &(Element &, int i_vertex)> | access_func | ) |
Sets the values at the hanging vertices to the proper interpolated values.
Vertex::shared_value
. So, if the shared value is desired, then this function should be called after Element::fetch_shareable_value
.