842 {
844
849 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
851
852 const auto nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
853 const auto nb_base_functions = data.getN().size2();
854
855 auto t_res_flow = getFTensor2SymmetricFromMat<DIM>(
commonDataPtr->resFlow);
856
858
859 auto next = [&]() { ++t_res_flow; };
860
861 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
862 auto t_base = data.getFTensor0N();
863 auto &nf = AssemblyDomainEleOp::locF;
864 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
865 double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
866 ++t_w;
867
869 t_rhs(L) = alpha * (t_res_flow(
i,
j) * t_L(
i,
j, L));
870 next();
871
872 auto t_nf = getFTensor1FromArray<size_symm, size_symm>(nf);
873 size_t bb = 0;
874 for (; bb != AssemblyDomainEleOp::nbRows /
size_symm; ++bb) {
875 t_nf(L) += t_base * t_rhs(L);
876 ++t_base;
877 ++t_nf;
878 }
879 for (; bb < nb_base_functions; ++bb)
880 ++t_base;
881 }
882
884}
#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< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
auto symm_L_tensor(FTensor::Number< DIM >)