1117 {
1119
1122 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
1124
1125 const auto nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
1126 const size_t nb_row_base_functions = row_data.getN().size2();
1127 auto &locMat = AssemblyDomainEleOp::locMat;
1128
1129 auto t_res_flow_dtau =
1130 getFTensor2SymmetricFromMat<DIM>(
commonDataPtr->resFlowDtau);
1131
1133
1134 auto next = [&]() { ++t_res_flow_dtau; };
1135
1136 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
1137 auto t_row_base = row_data.getFTensor0N();
1138 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
1139 double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
1140 ++t_w;
1142 t_res_vec(L) = alpha * (t_res_flow_dtau(
i,
j) * t_L(
i,
j, L));
1143 next();
1144
1145 size_t rr = 0;
1146 for (; rr != AssemblyDomainEleOp::nbRows /
size_symm; ++rr) {
1147 auto t_mat =
1149 auto t_col_base = col_data.getFTensor0N(gg, 0);
1150 for (size_t cc = 0; cc != AssemblyDomainEleOp::nbCols; cc++) {
1151 t_mat(L) += t_row_base * t_col_base * t_res_vec(L);
1152 ++t_mat;
1153 ++t_col_base;
1154 }
1155 ++t_row_base;
1156 }
1157 for (; rr != nb_row_base_functions; ++rr)
1158 ++t_row_base;
1159 }
1160
1162}
#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
FTensor::Index< 'j', 3 > j
static auto get_mat_tensor_sym_dscalar(size_t rr, MatrixDouble &mat, FTensor::Number< 2 >)
auto symm_L_tensor(FTensor::Number< DIM >)