33 {
35 if (row_type != MBVERTEX)
37
38 const int nb_integration_pts = getGaussPts().size2();
43
46
48 if (ALE)
50 else
51 coords = trans(getCoordsAtGaussPts());
52
54 auto t_coords = getFTensor1FromMat<3>(coords);
55
56 for (int gg = 0; gg != nb_integration_pts; ++gg) {
57 t_rho = 1 + t_coords(
i) * t_coords(
i);
58
59 t_grad_rho(
i) = 2 * t_coords(
i);
60
61 ++t_rho;
62 ++t_coords;
63 ++t_grad_rho;
64 }
65
67 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'i', SPACE_DIM > i
static auto getFTensor0FromVec(ublas::vector< T, A > &data)
Get tensor rank 0 (scalar) form data vector.