2541 {
2543
2544 int row_nb_dofs = row_data.
getIndices().size();
2545 int col_nb_dofs = col_data.
getIndices().size();
2546 auto &locMat = OP::locMat;
2547 locMat.resize(row_nb_dofs, col_nb_dofs, false);
2548 locMat.clear();
2549
2550
2551 EntityHandle fe_ent = OP::getFEEntityHandle();
2552
2554
2555 if (bc.faces.find(fe_ent) != bc.faces.end()) {
2556
2557 auto t_normal = OP::getFTensor1NormalsAtGaussPts();
2558 auto t_w = OP::getFTensor0IntegrationWeight();
2559
2563
2564 int nb_integration_pts = OP::getGaussPts().size2();
2565 int nb_base_functions = row_data.
getN().size2();
2567
2569
2570 for (int gg = 0; gg != nb_integration_pts; ++gg) {
2571
2573 t_N(
i) = t_normal(
i);
2575
2576 int rr = 0;
2577 for (; rr != row_nb_dofs /
SPACE_DIM; ++rr) {
2578 auto t_mat = getFTensor2FromArray<SPACE_DIM, SPACE_DIM, SPACE_DIM>(
2581 for (
auto cc = 0; cc != col_nb_dofs /
SPACE_DIM; ++cc) {
2583 ((t_w * t_row_base) * (t_N(
k) * t_col_base(
k))) * 0.5 *
t_kd(
i,
j);
2584 ++t_mat;
2585 ++t_col_base;
2586 }
2587 ++t_row_base;
2588 }
2589
2590 for (; rr != nb_base_functions; ++rr)
2591 ++t_row_base;
2592
2593 ++t_w;
2594 ++t_normal;
2595 }
2596
2597 locMat *= OP::getMeasure();
2598 }
2599 }
2601}
#define FTENSOR_INDEX(DIM, I)
Tensor1< T, Tensor_Dim > normalize()
#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< 'j', 3 > j
FTensor::Index< 'k', 3 > k
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....
auto getFTensor1N(FieldApproximationBase base)
Get base functions for Hdiv/Hcurl spaces.
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.