11 std::vector<double> VALS(
element->getNumVertices());
13 for(std::size_t i = 0; i <
element->getNumVertices(); i++) {
15 VALS[i] =
f(v->
x(), v->
y(), v->
z());
20 element->getIntegrationPoints(2 *
element->getPolynomialOrder() + 2, &npts,
23 for(
int k = 0; k < npts; k++) {
24 const double u = pts[k].
pt[0];
25 const double v = pts[k].
pt[1];
26 const double w = pts[k].
pt[2];
29 const double Jac =
element->getJacobianDeterminant(u, v, w);
31 const double F =
f(p.
x(), p.
y(), p.
z());
32 errSqr += pts[k].
weight * Jac * std::pow(C -
F, 2);
34 return std::sqrt(errSqr);