47 {
49
50 const int nb_row_dofs = row_data.
getIndices().size();
51 const int nb_col_dofs = col_data.
getIndices().size();
52
53 this->locMat.resize(nb_row_dofs, nb_col_dofs, false);
54 this->locMat.clear();
55
56
57 const double area = getMeasure();
58
59
60 const int nb_integration_points = getGaussPts().size2();
61
62 auto t_w = getFTensor0IntegrationWeight();
63
64
66
67
68 for (int gg = 0; gg != nb_integration_points; gg++) {
69 const double a = t_w * area;
70
71 for (int rr = 0; rr != nb_row_dofs; ++rr) {
72
74
75 for (int cc = 0; cc != nb_col_dofs; cc++) {
76 this->locMat(rr, cc) += t_row_diff_base(
i) * t_col_diff_base(
i) *
a;
77
78
79 ++t_col_diff_base;
80 }
81
82
83 ++t_row_diff_base;
84 }
85
86
87 ++t_w;
88 }
89
91 }
#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::Tensor1< FTensor::PackPtr< double *, Tensor_Dim >, Tensor_Dim > getFTensor1DiffN(const FieldApproximationBase base)
Get derivatives of base functions.
const VectorInt & getIndices() const
Get global indices of dofs on entity.