Definition at line 86 of file approximaton.cpp.
◆ OpError()
◆ doWork()
Definition at line 90 of file approximaton.cpp.
93 if (
const size_t nb_dofs = data.
getIndices().size()) {
95 const int nb_integration_pts = getGaussPts().size2();
96 auto t_w = getFTensor0IntegrationWeight();
98 auto t_coords = getFTensor1CoordsAtGaussPts();
104 const double volume = getMeasure();
108 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
110 const double alpha = t_w * volume;
113 error += alpha * pow(diff, 2);
115 for (
size_t r = 0;
r != nb_dofs; ++
r) {
116 nf[
r] += alpha * t_row_base * diff;
◆ commonDataPtr
The documentation for this struct was generated from the following file: