ThunderEgg  1.0.0
ThunderEgg::PETSc::PCShellCreator< D > Class Template Reference

Wraps an Operator for use as a PETSc PC. More...

#include <PCShellCreator.h>

Static Public Member Functions

static PC GetNewPCShell (const Operator< D > &prec, const Operator< D > &op, const std::function< Vector< D >()> &vector_allocator)
 Construct a new PCShell object. More...
 

Detailed Description

template<int D>
class ThunderEgg::PETSc::PCShellCreator< D >

Wraps an Operator for use as a PETSc PC.

Template Parameters
Dthe number of Cartesian dimensions

Member Function Documentation

◆ GetNewPCShell()

template<int D>
static PC ThunderEgg::PETSc::PCShellCreator< D >::GetNewPCShell ( const Operator< D > &  prec,
const Operator< D > &  op,
const std::function< Vector< D >()> &  vector_allocator 
)
inlinestatic

Construct a new PCShell object.

Parameters
precthe preconditioner that is being wrapped
opthe operator that is being preconditioned
vector_allocatorfunction that allocates need TE vectors
Returns
PC the wrapped PC, you are responsible for calling PCDestroy on this object

The documentation for this class was generated from the following file: