414 {
416 for (; miit != hi_miit; miit++) {
417 if (miit->get()->getHasLocalIndex()) {
420 cpy_bit_number, (*miit)->getEnt()));
421 auto diiiit = dofs_ptr->template get<Unique_mi_tag>().find(uid);
422 if (diiiit == dofs_ptr->template get<Unique_mi_tag>().end()) {
427 << "Problem finding DOFs in the copy field";
428 MOFEM_LOG(
"VECSELF", Sev::error) <<
"Field DOF: " << (**miit);
430 << "Copy field name: " << cpy_field_name;
432 "Automatic creation of entity and dof not implemented");
433 }
434 if constexpr (MODE == INSERT_VALUES)
435 (*diiiit)->getFieldData() = array[(*miit)->getPetscLocalDofIdx()];
436 else if constexpr (MODE == ADD_VALUES)
437 (*diiiit)->getFieldData() += array[(*miit)->getPetscLocalDofIdx()];
438 }
439 }
441 }
#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 MOFEM_LOG(channel, severity)
Log.
#define MOFEM_LOG_ATTRIBUTES(channel, bit)
Add attributes to channel.
#define MOFEM_LOG_FUNCTION()
Set scope.
static UId getUniqueIdCalculate(const DofIdx dof, UId ent_uid)
UId getLocalUniqueIdCalculate()
Get the Local Unique Id Calculate object.