v0.9.0
Public Member Functions | List of all members
MoFEM::SetOtherGlobalGhostVector< MODE > Struct Template Reference

Public Member Functions

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_field_name)
 

Detailed Description

template<int MODE>
struct MoFEM::SetOtherGlobalGhostVector< MODE >

Definition at line 496 of file VecManager.cpp.

Member Function Documentation

◆ operator()()

template<int MODE>
template<typename A0 , typename A1 , typename A2 , typename A3 , typename A4 >
MoFEMErrorCode MoFEM::SetOtherGlobalGhostVector< MODE >::operator() ( A0  dofs_ptr,
A1  array,
A2  miit,
A3  hi_miit,
A4 &  cpy_field_name 
)

Definition at line 498 of file VecManager.cpp.

499  {
501  for (; miit != hi_miit; miit++) {
502  auto diiiit =
503  dofs_ptr->template get<Composite_Name_And_Ent_And_EntDofIdx_mi_tag>()
504  .find(boost::make_tuple(cpy_field_name, (*miit)->getEnt(),
505  (*miit)->getEntDofIdx()));
506  if (diiiit ==
507  dofs_ptr->template get<Composite_Name_And_Ent_And_EntDofIdx_mi_tag>()
508  .end()) {
509  SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
510  "Automatic creation of entity and dof not implemented");
511  }
512  if (MODE == INSERT_VALUES)
513  (*diiiit)->getFieldData() = array[(*miit)->getPetscGlobalDofIdx()];
514  else if (MODE == ADD_VALUES)
515  (*diiiit)->getFieldData() += array[(*miit)->getPetscGlobalDofIdx()];
516  }
518  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407

The documentation for this struct was generated from the following file: