386 {
388 for (; miit != hi_miit; miit++) {
389 if (miit->get()->getHasLocalIndex()) {
392 cpy_bit_number, (*miit)->getEnt()));
393 auto diiiit = dofs_ptr->template get<Unique_mi_tag>().find(uid);
394 if (diiiit == dofs_ptr->template get<Unique_mi_tag>().end()) {
399 << "Problem finding DOFs in the copy field";
400 MOFEM_LOG(
"VECSELF", Sev::error) <<
"Field DOF: " << (**miit);
402 << "Copy field name: " << cpy_field_name;
404 "Automatic creation of entity and dof not implemented");
405 }
406 if constexpr (MODE == INSERT_VALUES)
407 (*diiiit)->getFieldData() = array[(*miit)->getPetscLocalDofIdx()];
408 else if constexpr (MODE == ADD_VALUES)
409 (*diiiit)->getFieldData() += array[(*miit)->getPetscLocalDofIdx()];
410 }
411 }
413 }
#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.