910 {
912
913 const size_t nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
914 const size_t nb_base_functions = data.getN().size2();
915
917
918 auto next = [&]() { ++t_res_c; };
919
920 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
921 auto &nf = AssemblyDomainEleOp::locF;
922 auto t_base = data.getFTensor0N();
923 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
924 const double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
925 ++t_w;
926 const auto res = alpha * t_res_c;
927 next();
928
929 size_t bb = 0;
930 for (; bb != AssemblyDomainEleOp::nbRows; ++bb) {
931 nf[bb] += t_base * res;
932 ++t_base;
933 }
934 for (; bb < nb_base_functions; ++bb)
935 ++t_base;
936 }
937
939}
#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()