Definition at line 84 of file standard_poisson.cpp.
◆ OpError()
StandardPoisson::OpError::OpError |
( |
std::string |
domain_field, |
|
|
boost::shared_ptr< CommonData > & |
common_data_ptr, |
|
|
MoFEM::Interface & |
m_field |
|
) |
| |
|
inline |
Definition at line 88 of file standard_poisson.cpp.
93 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE],
false);
94 doEntities[MBTRI] = doEntities[MBQUAD] =
true;
◆ doWork()
[OpError]
Definition at line 366 of file standard_poisson.cpp.
369 const int nb_integration_pts = getGaussPts().size2();
370 const double area = getMeasure();
371 auto t_w = getFTensor0IntegrationWeight();
373 auto t_val_grad = getFTensor1FromMat<2>(*(
commonDataPtr->approxValsGrad));
374 auto t_coords = getFTensor1CoordsAtGaussPts();
381 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
382 const double alpha = t_w * area;
385 t_coords(0), t_coords(1), t_coords(2));
386 error_l2 += alpha *
sqr(diff);
389 t_coords(0), t_coords(1), t_coords(2));
390 auto t_fun_grad = getFTensor1FromArray<2, 2>(vec);
391 t_diff(
i) = t_val_grad(
i) - t_fun_grad(
i);
393 error_h1 += alpha * t_diff(
i) * t_diff(
i);
404 std::array<double, 2> values;
405 values[0] = error_l2;
406 values[1] = error_h1;
◆ commonDataPtr
boost::shared_ptr<CommonData> StandardPoisson::OpError::commonDataPtr |
◆ domainField
std::string StandardPoisson::OpError::domainField |
◆ mField
The documentation for this struct was generated from the following file: