1834 {
1836
1837 EntityHandle fe_ent = OP::getFEEntityHandle();
1839 if (bc.faces.find(fe_ent) != bc.faces.end()) {
1841 int nb_integration_pts = OP::getGaussPts().size2();
1842 auto t_w = OP::getFTensor0IntegrationWeight();
1843 int nb_base_functions = row_data.
getN().size2();
1845
1849 t_bc_mask(ii) = bc.flags[ii] ? 1. : 0.;
1850
1851 auto get_t_vec = [&](const int rr) {
1852 std::array<double *, SPACE_DIM> ptrs;
1854 ptrs[
i] = &OP::locMat(rr +
i,
i);
1857 };
1858
1859 auto area = getMeasure();
1860 auto t_coords = OP::getFTensor1CoordsAtGaussPts();
1861 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1862 auto tau_scale =
1863 area * t_w * OP::betaCoeff(t_coords(0), t_coords(1), t_coords(2));
1864 int rr = 0;
1865 for (; rr != nb_dofs /
SPACE_DIM; ++rr) {
1868 for (
int cc = 0; cc != nb_dofs /
SPACE_DIM; ++cc) {
1870 tau_scale * (t_row_base_fun * t_col_base_fun) * t_bc_mask(
i);
1871 ++t_col_base_fun;
1872 ++t_mat;
1873 }
1874 ++t_row_base_fun;
1875 }
1876 for (; rr != nb_base_functions; ++rr)
1877 ++t_row_base_fun;
1878
1879 ++t_w;
1880 ++t_coords;
1881 }
1882 }
1883 }
1884
1886}
#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.