v0.13.1
Public Member Functions | Public Attributes | Friends | List of all members
ConvectiveMassElement::PCShellCtx Struct Reference

#include <users_modules/basic_finite_elements/src/ConvectiveMassElement.hpp>

Collaboration diagram for ConvectiveMassElement::PCShellCtx:
[legend]

Public Member Functions

 PCShellCtx (Mat shell_mat)
 
MoFEMErrorCode iNit ()
 
MoFEMErrorCode dEstroy ()
 

Public Attributes

Mat shellMat
 
bool initPC
 check if PC is initialized More...
 
PC pC
 

Friends

MoFEMErrorCode PCShellSetUpOp (PC pc)
 
MoFEMErrorCode PCShellDestroy (PC pc)
 
MoFEMErrorCode PCShellApplyOp (PC pc, Vec f, Vec x)
 

Detailed Description

Examples
nonlinear_dynamics.cpp.

Definition at line 600 of file ConvectiveMassElement.hpp.

Constructor & Destructor Documentation

◆ PCShellCtx()

ConvectiveMassElement::PCShellCtx::PCShellCtx ( Mat  shell_mat)

Definition at line 605 of file ConvectiveMassElement.hpp.

605: shellMat(shell_mat), initPC(false) {}
bool initPC
check if PC is initialized

Member Function Documentation

◆ dEstroy()

MoFEMErrorCode ConvectiveMassElement::PCShellCtx::dEstroy ( )

Definition at line 2400 of file ConvectiveMassElement.cpp.

2400 {
2402
2403 if (initPC) {
2404 CHKERR PCDestroy(&pC);
2405 initPC = false;
2406 }
2408}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#define CHKERR
Inline error check.
Definition: definitions.h:535
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440

◆ iNit()

MoFEMErrorCode ConvectiveMassElement::PCShellCtx::iNit ( )

Definition at line 2388 of file ConvectiveMassElement.cpp.

2388 {
2390
2391 if (!initPC) {
2392 MPI_Comm comm;
2393 CHKERR PetscObjectGetComm((PetscObject)shellMat, &comm);
2394 CHKERR PCCreate(comm, &pC);
2395 initPC = true;
2396 }
2398}

Friends And Related Function Documentation

◆ PCShellApplyOp

MoFEMErrorCode PCShellApplyOp ( PC  pc,
Vec  f,
Vec  x 
)
friend

◆ PCShellDestroy

MoFEMErrorCode PCShellDestroy ( PC  pc)
friend

◆ PCShellSetUpOp

MoFEMErrorCode PCShellSetUpOp ( PC  pc)
friend

Member Data Documentation

◆ initPC

bool ConvectiveMassElement::PCShellCtx::initPC

check if PC is initialized

Definition at line 603 of file ConvectiveMassElement.hpp.

◆ pC

PC ConvectiveMassElement::PCShellCtx::pC

Definition at line 607 of file ConvectiveMassElement.hpp.

◆ shellMat

Mat ConvectiveMassElement::PCShellCtx::shellMat

Definition at line 602 of file ConvectiveMassElement.hpp.


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