622 {
623 if (!this->timeScalingFun.empty())
624 this->locF *= this->timeScalingFun(this->getFEMethod()->ts_t);
625 if (!this->feScalingFun.empty())
626 this->locF *= this->feScalingFun(this->getFEMethod());
628 auto *vec_ptr = this->locF.data().data();
629 const auto nb_dofs = row_data.getIndices().size();
630 auto *ind_ptr = row_data.getIndices().data().data();
632 }
634 const auto field_ents = data.getFieldEntities();
635 std::vector<EntityHandle> ents(field_ents.size());
636 std::transform(field_ents.begin(), field_ents.end(), ents.begin(),
637 [](const auto *fe) { return fe->getEnt(); });
638 if (field_ents.empty())
642 auto &moab = getMoab();
645 topo_values.data().data());
646 topo_values += this->locF;
648 this->locF.data().data());
649 }
650 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
UBlasVector< double > VectorDouble
auto type_from_handle(const EntityHandle h)
get type from entity handle
MoFEMErrorCode VecSetValues(Vec V, const EntitiesFieldData::EntData &data, const double *ptr, InsertMode iora)
Assemble PETSc vector.