1472 {
1474
1475 if (
dAta.
tEts.find(getNumeredEntFiniteElementPtr()->getEnt()) ==
1478 }
1480 if (nb_dofs == 0)
1482
1483 try {
1484
1487
1489 int nb_base_functions = row_data.
getN().size2();
1491
1492 for (
unsigned int gg = 0; gg < row_data.
getN().size1(); gg++) {
1498 for (;
dd < nb_dofs / 3;
dd++) {
1499 t_nf(
i) += base * res(
i);
1500 ++base;
1501 ++t_nf;
1502 }
1503 for (;
dd != nb_base_functions;
dd++) {
1504 ++base;
1505 }
1506 }
1507
1508 if (row_data.
getIndices().size() > 3 * row_data.
getN().size2()) {
1509 SETERRQ(PETSC_COMM_SELF, 1, "data inconsistency");
1510 }
1514 VectorDofs::iterator dit = dofs.begin();
1515 for (int ii = 0; dit != dofs.end(); dit++, ii++) {
1518
1519 indices[ii] = -1;
1520 }
1521 }
1522
1524 &
nf[0], ADD_VALUES);
1525 } else {
1528 }
1529
1530 } catch (const std::exception &ex) {
1531 std::ostringstream ss;
1532 ss << "throw in method: " << ex.what() << std::endl;
1533 SETERRQ(PETSC_COMM_SELF, 1, ss.str().c_str());
1534 }
1535
1537}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
FTensor::Index< 'i', SPACE_DIM > i
const Tensor2_symmetric_Expr< const ddTensor0< T, Dim, i, j >, typename promote< T, double >::V, Dim, i, j > dd(const Tensor0< T * > &a, const Index< i, Dim > index1, const Index< j, Dim > index2, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
UBlasVector< int > VectorInt
ublas::vector< FEDofEntity *, DofsAllocator > VectorDofs
constexpr auto VecSetValues
Range tEts
elements in block set
std::vector< VectorDouble > valT
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 VectorDofs & getFieldDofs() const
get dofs data stature FEDofEntity
const VectorInt & getIndices() const
Get global indices of dofs on entity.