120 {
122
123 const double vol = getMeasure();
124 auto t_w = getFTensor0IntegrationWeight();
125 auto t_coords = getFTensor1CoordsAtGaussPts();
126 auto t_base = data.getFTensor0N();
127 auto t_diff_base = data.getFTensor1DiffN<
SPACE_DIM>();
128
129#ifndef NDEBUG
130 if (data.getDiffN().size1() != data.getN().size1())
132 if (data.getDiffN().size2() != data.getN().size2() *
SPACE_DIM) {
134 << "Side " << rowSide << " " << CN::EntityTypeName(rowType);
135 MOFEM_LOG(
"SELF", Sev::error) << data.getN();
136 MOFEM_LOG(
"SELF", Sev::error) << data.getDiffN();
138 }
139#endif
140
141 auto t_old_sol = getFTensor0FromVec(*
oldSolPtr);
142 auto t_new_sol = getFTensor0FromVec(*
newSolPtr);
143
144 for (int gg = 0; gg != nbIntegrationPts; ++gg) {
145
146 const double alpha =
147 t_w * vol *
scalarFunction(t_coords(0), t_coords(1), t_coords(2));
148
149 int bb = 0;
150 for (; bb != nbRows; ++bb) {
151 locF[bb] += (t_base * alpha) * (t_old_sol);
152 ++t_base;
153 ++t_diff_base;
154 }
155
156 for (; bb < nbRowBaseFunctions; ++bb) {
157 ++t_base;
158 ++t_diff_base;
159 }
160
161 ++t_old_sol;
162 ++t_new_sol;
163
164 ++t_coords;
165 ++t_w;
166 }
167
169 }
constexpr int SPACE_DIM
[Define dimension]
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
@ MOFEM_DATA_INCONSISTENCY
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MOFEM_LOG(channel, severity)
Log.