#include <tutorials/cor-2to5/src/AuxPoissonFunctions.hpp>
◆ AuxFunctions()
◆ assembleGhostVector()
MoFEMErrorCode PoissonExample::AuxFunctions::assembleGhostVector |
( |
Vec |
ghost_vec | ) |
const |
|
inline |
Assemble error vector.
- Examples
- analytical_nonlinear_poisson.cpp, analytical_poisson.cpp, analytical_poisson_field_split.cpp, and AuxPoissonFunctions.hpp.
Definition at line 43 of file AuxPoissonFunctions.hpp.
46 CHKERR VecAssemblyBegin(ghost_vec);
47 CHKERR VecAssemblyEnd(ghost_vec);
49 CHKERR VecGhostUpdateBegin(ghost_vec, ADD_VALUES, SCATTER_REVERSE);
50 CHKERR VecGhostUpdateEnd(ghost_vec, ADD_VALUES, SCATTER_REVERSE);
52 CHKERR VecGhostUpdateBegin(ghost_vec, INSERT_VALUES, SCATTER_FORWARD);
53 CHKERR VecGhostUpdateEnd(ghost_vec, INSERT_VALUES, SCATTER_FORWARD);
◆ createGhostVec()
MoFEMErrorCode PoissonExample::AuxFunctions::createGhostVec |
( |
Vec * |
ghost_vec | ) |
const |
|
inline |
Create ghost vector to assemble errors from all element on distributed mesh. Ghost vector has size 1, where one element is owned by processor 0, other processor have one ghost element of zero element at processor 0.
[createGhostVec description]
- Parameters
-
ghost_vec | pointer to created ghost vector |
- Returns
- error code
- Examples
- analytical_nonlinear_poisson.cpp, analytical_poisson.cpp, analytical_poisson_field_split.cpp, and AuxPoissonFunctions.hpp.
Definition at line 30 of file AuxPoissonFunctions.hpp.
34 int nb_locals =
rAnk == 0 ? 1 : 0;
35 int nb_ghosts =
rAnk > 0 ? 1 : 0;
36 CHKERR VecCreateGhost(
cOmm, nb_locals, 1, nb_ghosts, ghosts, ghost_vec);
◆ printError()
MoFEMErrorCode PoissonExample::AuxFunctions::printError |
( |
Vec |
ghost_vec | ) |
|
|
inline |
◆ testError()
MoFEMErrorCode PoissonExample::AuxFunctions::testError |
( |
Vec |
ghost_vec | ) |
|
|
inline |
◆ cOmm
MPI_Comm PoissonExample::AuxFunctions::cOmm |
|
private |
◆ rAnk
const int PoissonExample::AuxFunctions::rAnk |
|
private |
The documentation for this struct was generated from the following file: