v0.9.1
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]

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 24 of file PCMGSetUpViaApproxOrders.hpp.

Constructor & Destructor Documentation

◆ PCMGSubMatrixCtx()

PCMGSubMatrixCtx::PCMGSubMatrixCtx ( Mat  a,
IS  is 
)

Definition at line 43 of file PCMGSetUpViaApproxOrders.cpp.

43  : A(a), iS(is) {
44  // Increase reference of petsc object (works like shared_ptr but unique for
45  // PETSc)
46  ierr = PetscObjectReference((PetscObject)A);
47  CHKERRABORT(PETSC_COMM_WORLD, ierr);
48  ierr = PetscObjectReference((PetscObject)iS);
49  CHKERRABORT(PETSC_COMM_WORLD, ierr);
50 }

◆ ~PCMGSubMatrixCtx()

PCMGSubMatrixCtx::~PCMGSubMatrixCtx ( )
virtual

Definition at line 52 of file PCMGSetUpViaApproxOrders.cpp.

52  {
53  ierr = MatDestroy(&A);
54  CHKERRABORT(PETSC_COMM_WORLD, ierr);
55  ierr = ISDestroy(&iS);
56  CHKERRABORT(PETSC_COMM_WORLD, ierr);
57 }

Member Data Documentation

◆ A

Mat PCMGSubMatrixCtx::A

Definition at line 25 of file PCMGSetUpViaApproxOrders.hpp.

◆ F

Vec PCMGSubMatrixCtx::F

Definition at line 26 of file PCMGSetUpViaApproxOrders.hpp.

◆ iS

IS PCMGSubMatrixCtx::iS

Definition at line 27 of file PCMGSetUpViaApproxOrders.hpp.

◆ sCat

VecScatter PCMGSubMatrixCtx::sCat

Definition at line 28 of file PCMGSetUpViaApproxOrders.hpp.

◆ X

Vec PCMGSubMatrixCtx::X

Definition at line 26 of file PCMGSetUpViaApproxOrders.hpp.


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