v0.16.0
Loading...
Searching...
No Matches
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
 
PC pC
 

Friends

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

Detailed Description

Examples
mofem/users_modules/basic_finite_elements/nonlinear_elasticity/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 2401 of file ConvectiveMassElement.cpp.

2401 {
2403
2404 if (initPC) {
2405 CHKERR PCDestroy(&pC);
2406 initPC = false;
2407 }
2409}
#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 2389 of file ConvectiveMassElement.cpp.

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

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: