v0.15.0
Loading...
Searching...
No Matches
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
 
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)
inline

Definition at line 605 of file ConvectiveMassElement.hpp.

Member Function Documentation

◆ dEstroy()

MoFEMErrorCode ConvectiveMassElement::PCShellCtx::dEstroy ( )

Definition at line 2396 of file ConvectiveMassElement.cpp.

2396 {
2398
2399 if (initPC) {
2400 CHKERR PCDestroy(&pC);
2401 initPC = false;
2402 }
2404}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...

◆ iNit()

MoFEMErrorCode ConvectiveMassElement::PCShellCtx::iNit ( )

Definition at line 2384 of file ConvectiveMassElement.cpp.

2384 {
2386
2387 if (!initPC) {
2388 MPI_Comm comm;
2389 CHKERR PetscObjectGetComm((PetscObject)shellMat, &comm);
2390 CHKERR PCCreate(comm, &pC);
2391 initPC = true;
2392 }
2394}

Friends And Related Symbol 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: