684 {
686 if (!this->timeScalingFun.empty())
687 this->locF *= this->timeScalingFun(this->getFEMethod()->ts_t);
688 if (!this->feScalingFun.empty())
689 this->locF *= this->feScalingFun(this->getFEMethod());
691 auto *vec_ptr = this->locF.data().data();
692 const auto nb_dofs = row_data.getIndices().size();
693 auto *ind_ptr = row_data.getIndices().data().data();
695 }
697 const auto field_ents = row_data.getFieldEntities();
698 std::vector<EntityHandle> ents(field_ents.size());
699 std::transform(field_ents.begin(), field_ents.end(), ents.begin(),
700 [](const auto *fe) { return fe->getEnt(); });
701 if (field_ents.empty())
705 auto &moab = this->getMoab();
708 topo_values.data().data());
709 topo_values += this->locF;
711 topo_values.data().data());
712 }
714 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#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()
#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.