◆ OpValsDiffVals()
OpValsDiffVals::OpValsDiffVals |
( |
VectorDouble & |
vals, |
|
|
MatrixDouble & |
diff_vals, |
|
|
bool |
check_grads |
|
) |
| |
|
inline |
◆ doWork()
Definition at line 108 of file scalar_check_approximation.cpp.
111 const int nb_gauss_pts = getGaussPts().size2();
112 if (
type == MBVERTEX) {
113 vAls.resize(nb_gauss_pts,
false);
123 <<
"Type " << moab::CN::EntityTypeName(
type) <<
" side " << side;
129 for (
int gg = 0; gg != nb_gauss_pts; gg++) {
131 for (
int bb = 0; bb != nb_dofs; bb++) {
132 t_vals += t_base_fun * t_data;
136 const double v = t_vals;
137 if (!std::isnormal(
v))
143 auto t_diff_vals = getFTensor1FromMat<SPACE_DIM>(
diffVals);
145 for (
int gg = 0; gg != nb_gauss_pts; gg++) {
147 for (
int bb = 0; bb != nb_dofs; bb++) {
148 t_diff_vals(
i) += t_diff_base_fun(
i) * t_data;
153 if (!std::isnormal(t_diff_vals(
d)))
◆ checkGradients
const bool OpValsDiffVals::checkGradients |
◆ diffVals
MatrixDouble& OpValsDiffVals::diffVals |
◆ vAls
VectorDouble& OpValsDiffVals::vAls |
The documentation for this struct was generated from the following file: