v0.8.23
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 470 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 472 of file VecManager.cpp.

473  {
475  for (; miit != hi_miit; miit++) {
476  auto diiiit =
477  dofs_ptr->template get<Composite_Name_And_Ent_And_EntDofIdx_mi_tag>()
478  .find(boost::make_tuple(cpy_field_name, (*miit)->getEnt(),
479  (*miit)->getEntDofIdx()));
480  if (diiiit ==
481  dofs_ptr->template get<Composite_Name_And_Ent_And_EntDofIdx_mi_tag>()
482  .end()) {
483  SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
484  "Automatic creation of entity and dof not implemented");
485  }
486  if (MODE == INSERT_VALUES)
487  (*diiiit)->getFieldData() = array[(*miit)->getPetscGlobalDofIdx()];
488  else if (MODE == ADD_VALUES)
489  (*diiiit)->getFieldData() += array[(*miit)->getPetscGlobalDofIdx()];
490  }
492  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:476
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:406

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