◆ OpError() [1/2]
OpError::OpError |
( |
boost::shared_ptr< VectorDouble > |
u_at_pts_ptr, |
|
|
double & |
l2_error |
|
) |
| |
|
inline |
Definition at line 62 of file initial_diffusion.cpp.
66 std::fill(&doEntities[MBEDGE], &doEntities[MBMAXTYPE],
false);
◆ OpError() [2/2]
OpError::OpError |
( |
const std::string |
field_name, |
|
|
boost::shared_ptr< MatrixDouble > |
x_ptr |
|
) |
| |
|
inline |
Definition at line 221 of file approx_sphere.cpp.
225 std::fill(&doEntities[MBEDGE], &doEntities[MBMAXTYPE],
false);
◆ doWork()
Definition at line 228 of file approx_sphere.cpp.
232 auto t_w = getFTensor0IntegrationWeight();
233 auto t_x = getFTensor1FromMat<3>(*
xPtr);
234 auto t_normal = getFTensor1NormalsAtGaussPts();
235 auto nb_integration_pts = getGaussPts().size2();
239 for (
int gg = 0; gg != nb_integration_pts; gg++) {
241 double l = std::sqrt(t_normal(
i) * t_normal(
i));
242 error += t_w *
l * std::abs((t_x(
i) * t_x(
i) -
A *
A));
◆ errorVec
◆ l2Error
◆ uAtPtsPtr
boost::shared_ptr<VectorDouble> OpError::uAtPtsPtr |
|
private |
◆ xPtr
boost::shared_ptr<MatrixDouble> OpError::xPtr |
|
private |
The documentation for this struct was generated from the following files: