MFEM
v3.3.2
Finite element discretization library
|
Abstract class for PETSc's solvers. More...
#include <petsc.hpp>
Public Member Functions | |
PetscSolver () | |
Construct an empty PetscSolver. Initialize protected objects to NULL. More... | |
virtual | ~PetscSolver () |
Destroy the PetscParVectors allocated (if any). More... | |
void | Customize (bool customize=true) const |
Customize object with options set. More... | |
int | GetConverged () |
int | GetNumIterations () |
double | GetFinalNorm () |
void | SetMonitor (PetscSolverMonitor *ctx) |
Sets user-defined monitoring routine. More... | |
void | SetBCHandler (PetscBCHandler *bch) |
Sets the object to handle essential boundary conditions. More... | |
void | SetPreconditionerFactory (PetscPreconditionerFactory *factory) |
Sets the object for the creation of the preconditioner. More... | |
operator PetscObject () const | |
Conversion function to PetscObject. More... | |
Update of PETSc options. | |
The following Set methods can be used to update the internal PETSc options.
| |
void | SetTol (double tol) |
void | SetRelTol (double tol) |
void | SetAbsTol (double tol) |
void | SetMaxIter (int max_iter) |
void | SetPrintLevel (int plev) |
Protected Member Functions | |
void | CreatePrivateContext () |
void | FreePrivateContext () |
Protected Attributes | |
bool | clcustom |
Boolean to handle SetFromOptions calls. More... | |
PetscObject | obj |
The actual PETSc object (KSP, PC, SNES or TS). More... | |
PetscClassId | cid |
The class id of the actual PETSc object. More... | |
PetscParVector * | B |
Right-hand side and solution vector. More... | |
PetscParVector * | X |
PetscBCHandler * | bchandler |
Handler for boundary conditions. More... | |
void * | private_ctx |
Private context for solver. More... | |
bool | operatorset |
Boolean to handle SetOperator calls. More... | |
mfem::PetscSolver::PetscSolver | ( | ) |
Construct an empty PetscSolver. Initialize protected objects to NULL.
|
virtual |
|
protected |
void mfem::PetscSolver::Customize | ( | bool | customize = true | ) | const |
|
inline |
void mfem::PetscSolver::SetBCHandler | ( | PetscBCHandler * | bch | ) |
void mfem::PetscSolver::SetMonitor | ( | PetscSolverMonitor * | ctx | ) |
void mfem::PetscSolver::SetPreconditionerFactory | ( | PetscPreconditionerFactory * | factory | ) |
|
mutableprotected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |