1755 {
1757
1758 EntityHandle fe_ent = OP::getFEEntityHandle();
1760 if (bc.faces.find(fe_ent) != bc.faces.end()) {
1762 int nb_integration_pts = OP::getGaussPts().size2();
1763 auto t_w = OP::getFTensor0IntegrationWeight();
1764 int nb_base_functions = row_data.
getN().size2();
1766
1770 t_bc_mask(ii) = bc.flags[ii] ? 1. : 0.;
1771
1772 auto get_t_vec = [&](const int rr) {
1773 std::array<double *, SPACE_DIM> ptrs;
1775 ptrs[
i] = &OP::locMat(rr +
i,
i);
1778 };
1779
1780 auto area = getMeasure();
1781 auto t_coords = OP::getFTensor1CoordsAtGaussPts();
1782 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1783 auto tau_scale =
1784 area * t_w * OP::betaCoeff(t_coords(0), t_coords(1), t_coords(2));
1785 int rr = 0;
1786 for (; rr != nb_dofs /
SPACE_DIM; ++rr) {
1789 for (
int cc = 0; cc != nb_dofs /
SPACE_DIM; ++cc) {
1791 tau_scale * (t_row_base_fun * t_col_base_fun) * t_bc_mask(
i);
1792 ++t_col_base_fun;
1793 ++t_mat;
1794 }
1795 ++t_row_base_fun;
1796 }
1797 for (; rr != nb_base_functions; ++rr)
1798 ++t_row_base_fun;
1799
1800 ++t_w;
1801 ++t_coords;
1802 }
1803 }
1804 }
1805
1807}
#define FTENSOR_INDEX(DIM, I)
#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::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0N(const FieldApproximationBase base)
Get base function as Tensor0.
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.