2474 {
2476
2477 int row_nb_dofs = row_data.
getIndices().size();
2478 int col_nb_dofs = col_data.
getIndices().size();
2479 auto &locMat = OP::locMat;
2480 locMat.resize(row_nb_dofs, col_nb_dofs, false);
2481 locMat.clear();
2482
2483
2485
2487
2488 if (bc.faces.find(fe_ent) != bc.faces.end()) {
2489
2490 auto t_normal = OP::getFTensor1NormalsAtGaussPts();
2491 auto t_w = OP::getFTensor0IntegrationWeight();
2492
2496
2497 int nb_integration_pts = OP::getGaussPts().size2();
2498 int nb_base_functions = row_data.
getN().size2();
2500
2502
2503 for (int gg = 0; gg != nb_integration_pts; ++gg) {
2504
2506 t_N(
i) = t_normal(
i);
2508
2509 int rr = 0;
2510 for (; rr != row_nb_dofs /
SPACE_DIM; ++rr) {
2511 auto t_mat = getFTensor2FromArray<SPACE_DIM, SPACE_DIM, SPACE_DIM>(
2514 for (
auto cc = 0; cc != col_nb_dofs /
SPACE_DIM; ++cc) {
2516 ((t_w * t_row_base) * (t_N(
k) * t_col_base(
k))) * 0.5 *
t_kd(
i,
j);
2517 ++t_mat;
2518 ++t_col_base;
2519 }
2520 ++t_row_base;
2521 }
2522
2523 for (; rr != nb_base_functions; ++rr)
2524 ++t_row_base;
2525
2526 ++t_w;
2527 ++t_normal;
2528 }
2529
2530 locMat *= OP::getMeasure();
2531 }
2532 }
2534}
#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.