v0.13.2
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
PCMGSubMatrixCtx Struct Reference

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

Inheritance diagram for PCMGSubMatrixCtx:
[legend]
Collaboration diagram for PCMGSubMatrixCtx:
[legend]

Public Member Functions

 PCMGSubMatrixCtx (Mat a, IS is)
 
virtual ~PCMGSubMatrixCtx ()
 

Public Attributes

Mat A
 
Vec X
 
Vec F
 
IS iS
 
VecScatter sCat
 

Detailed Description

Definition at line 9 of file PCMGSetUpViaApproxOrders.hpp.

Constructor & Destructor Documentation

◆ PCMGSubMatrixCtx()

PCMGSubMatrixCtx::PCMGSubMatrixCtx ( Mat  a,
IS  is 
)

Definition at line 32 of file PCMGSetUpViaApproxOrders.cpp.

32 : A(a), iS(is) {
33 // Increase reference of petsc object (works like shared_ptr but unique for
34 // PETSc)
35 ierr = PetscObjectReference((PetscObject)A);
36 CHKERRABORT(PETSC_COMM_WORLD, ierr);
37 ierr = PetscObjectReference((PetscObject)iS);
38 CHKERRABORT(PETSC_COMM_WORLD, ierr);
39}
constexpr double a
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:76

◆ ~PCMGSubMatrixCtx()

PCMGSubMatrixCtx::~PCMGSubMatrixCtx ( )
virtual

Definition at line 41 of file PCMGSetUpViaApproxOrders.cpp.

41 {
42 ierr = MatDestroy(&A);
43 CHKERRABORT(PETSC_COMM_WORLD, ierr);
44 ierr = ISDestroy(&iS);
45 CHKERRABORT(PETSC_COMM_WORLD, ierr);
46}

Member Data Documentation

◆ A

Mat PCMGSubMatrixCtx::A

Definition at line 10 of file PCMGSetUpViaApproxOrders.hpp.

◆ F

Vec PCMGSubMatrixCtx::F

Definition at line 11 of file PCMGSetUpViaApproxOrders.hpp.

◆ iS

IS PCMGSubMatrixCtx::iS

Definition at line 12 of file PCMGSetUpViaApproxOrders.hpp.

◆ sCat

VecScatter PCMGSubMatrixCtx::sCat

Definition at line 13 of file PCMGSetUpViaApproxOrders.hpp.

◆ X

Vec PCMGSubMatrixCtx::X

Definition at line 11 of file PCMGSetUpViaApproxOrders.hpp.


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