33 {
35 if (row_type != MBVERTEX)
37
38 const int nb_integration_pts = getGaussPts().size2();
43
45 auto t_grad_rho =
47
49 auto set_density = [&](auto t_coords) {
50 for (int gg = 0; gg != nb_integration_pts; ++gg) {
51 t_rho = 1 + t_coords(
i) * t_coords(
i);
52 t_grad_rho(
i) = 2 * t_coords(
i);
53
54 ++t_rho;
55 ++t_coords;
56 ++t_grad_rho;
57 }
58 };
59
60 if constexpr (ALE) {
62 } else {
64 trans(getCoordsAtGaussPts());
65 set_density(getFTensor1FromMat<3, -1, CoeffsByGauss>(coords));
66 }
67
69 }
#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
auto getFTensor1FromMat(M &data, int rr=0, int cc=0)
Get tensor rank 1 (vector) form data matrix.
static auto getFTensor0FromVec(V &data)
Get tensor rank 0 (scalar) form data vector.