Definition at line 88 of file child_and_parent.cpp.
◆ OpError() [1/2]
◆ OpError() [2/2]
◆ doWork() [1/2]
Definition at line 92 of file child_and_parent.cpp.
95 if (
const size_t nb_dofs = data.
getIndices().size()) {
97 const int nb_integration_pts = getGaussPts().size2();
98 auto t_w = getFTensor0IntegrationWeight();
100 auto t_coords = getFTensor1CoordsAtGaussPts();
106 const double volume = getMeasure();
110 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
112 const double alpha = t_w * volume;
115 error += alpha * pow(diff, 2);
117 for (
size_t r = 0;
r != nb_dofs; ++
r) {
118 nf[
r] += alpha * t_row_base * diff;
◆ doWork() [2/2]
Definition at line 228 of file hanging_node_approx.cpp.
231 if (
const size_t nb_dofs = data.
getIndices().size()) {
235 const int nb_integration_pts = getGaussPts().size2();
236 auto t_w = getFTensor0IntegrationWeight();
239 getFTensor1FromMat<SPACE_DIM>(*(
commonDataPtr->divApproxVals));
240 auto t_coords = getFTensor1CoordsAtGaussPts();
245 const double volume = getMeasure();
249 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
251 const double alpha = t_w * volume;
257 t_grad_diff(
i) -= t_grad_val(
i);
259 error += alpha * (pow(diff, 2) + t_grad_diff(
i) * t_grad_diff(
i));
261 for (
size_t r = 0;
r != nb_dofs; ++
r) {
262 nf[
r] += alpha * t_row_base * diff;
◆ commonDataPtr
The documentation for this struct was generated from the following files: