62 for (
unsigned int v=0; v<
n_vars; v++)
68 FEBase * side_fe =
nullptr;
70 const std::set<unsigned char> & elem_dims =
73 for (
const auto & dim : elem_dims)
91 FEBase * fe_fine =
nullptr;
94 FEBase * fe_coarse =
nullptr;
100 std::vector<std::vector<Real>> phi_coarse = fe_coarse->
get_phi();
101 std::vector<std::vector<Real>> phi_fine = fe_fine->
get_phi();
102 std::vector<Real> JxW_face = fe_fine->
get_JxW();
104 for (
unsigned int qp=0; qp != n_qp; ++qp)
114 const Number jump = u_fine - u_coarse;
117 error += JxW_face[qp] * jump2;
133 FEBase * fe_fine =
nullptr;
136 const std::string & var_name =
139 std::vector<std::vector<Real>> phi_fine = fe_fine->
get_phi();
140 std::vector<Real> JxW_face = fe_fine->
get_JxW();
141 std::vector<Point> qface_point = fe_fine->
get_xyz();
150 qface_point[0], var_name).first)
161 for (
unsigned int qp=0; qp<n_qp; qp++)
164 const std::pair<bool,Real> essential_bc =
170 libmesh_assert_equal_to (essential_bc.first,
true);
176 const Number jump = essential_bc.second - u_fine;
186 error += JxW_face[qp]*jump2;
202 const std::string & var_name))
virtual bool boundary_side_integration() override
const std::vector< Point > & get_xyz() const
std::unique_ptr< FEMContext > fine_context
The base class for all geometric element types.
virtual unsigned int n_quadrature_points() const =0
const unsigned int n_vars
virtual Real hmax() const
void attach_essential_bc_function(std::pair< bool, Real > fptr(const System &system, const Point &p, const std::string &var_name))
virtual void init_context(FEMContext &c) override
std::pair< bool, Real >(* _bc_function)(const System &system, const Point &p, const std::string &var_name)
Manages consistently variables, degrees of freedom, and coefficient vectors.
const std::vector< Real > & get_JxW() const
std::unique_ptr< FEMContext > coarse_context
virtual void internal_side_integration() override
Real weight(unsigned int var) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual unsigned short dim() const =0
virtual ErrorEstimatorType type() const override
unsigned int n_vars() const
bool integrate_boundary_sides
A geometric point in (x,y,z) space.
const std::set< unsigned char > & elem_dimensions() const
const std::vector< std::vector< OutputShape > > & get_phi() const