|
template<typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > |
MoFEMErrorCode | operator() (A0 dofs_ptr, A1 array, A2 miit, A3 hi_miit, A4 &cpy_bit_number, const std::string cpy_field_name) |
|
template<int MODE>
struct MoFEM::SetOtherLocalGhostVector< MODE >
Definition at line 379 of file VecManager.cpp.
◆ operator()()
template<int MODE>
template<typename A0 , typename A1 , typename A2 , typename A3 , typename A4 >
Definition at line 381 of file VecManager.cpp.
385 for (; miit != hi_miit; miit++) {
386 if (miit->get()->getHasLocalIndex()) {
389 cpy_bit_number, (*miit)->getEnt()));
390 auto diiiit = dofs_ptr->template get<Unique_mi_tag>().find(uid);
391 if (diiiit == dofs_ptr->template get<Unique_mi_tag>().end()) {
396 <<
"Problem finding DOFs in the copy field";
397 MOFEM_LOG(
"VECSELF", Sev::error) <<
"Field DOF: " << (**miit);
399 <<
"Copy field name: " << cpy_field_name;
401 "Automatic creation of entity and dof not implemented");
403 if constexpr (MODE == INSERT_VALUES)
404 (*diiiit)->getFieldData() = array[(*miit)->getPetscLocalDofIdx()];
405 else if constexpr (MODE == ADD_VALUES)
406 (*diiiit)->getFieldData() += array[(*miit)->getPetscLocalDofIdx()];
The documentation for this struct was generated from the following file: