|  | MFEM v4.8.0
    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. | |
| virtual | ~PetscSolver () | 
| Destroy the PetscParVectors allocated (if any). | |
| void | Customize (bool customize=true) const | 
| Customize object with options set. | |
| int | GetConverged () | 
| int | GetNumIterations () | 
| real_t | GetFinalNorm () | 
| void | SetMonitor (PetscSolverMonitor *ctx) | 
| Sets user-defined monitoring routine. | |
| void | SetBCHandler (PetscBCHandler *bch) | 
| Sets the object to handle essential boundary conditions. | |
| void | SetPreconditionerFactory (PetscPreconditionerFactory *factory) | 
| Sets the object for the creation of the preconditioner. | |
| operator PetscObject () const | |
| Conversion function to PetscObject. | |
| MPI_Comm | GetComm () const | 
| Get the associated MPI communicator. | |
| Update of PETSc options. | |
| The following Set methods can be used to update the internal PETSc options. 
 | |
| void | SetTol (real_t tol) | 
| void | SetRelTol (real_t tol) | 
| void | SetAbsTol (real_t 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. | |
| PetscObject | obj | 
| The actual PETSc object (KSP, PC, SNES or TS). | |
| PetscClassId | cid | 
| The class id of the actual PETSc object. | |
| PetscParVector * | B | 
| Right-hand side and solution vector. | |
| PetscParVector * | X | 
| PetscBCHandler * | bchandler | 
| Handler for boundary conditions. | |
| void * | private_ctx | 
| Private context for solver. | |
| bool | operatorset | 
| Boolean to handle SetOperator calls. | |
| mfem::PetscSolver::PetscSolver | ( | ) | 
Construct an empty PetscSolver. Initialize protected objects to NULL.
| 
 | virtual | 
| 
 | protected | 
| void mfem::PetscSolver::Customize | ( | bool | customize = true | ) | const | 
| MPI_Comm mfem::PetscSolver::GetComm | ( | ) | const | 
| mfem::real_t mfem::PetscSolver::GetFinalNorm | ( | ) | 
| 
 | inline | 
| void mfem::PetscSolver::SetAbsTol | ( | mfem::real_t | tol | ) | 
| void mfem::PetscSolver::SetBCHandler | ( | PetscBCHandler * | bch | ) | 
| void mfem::PetscSolver::SetMonitor | ( | PetscSolverMonitor * | ctx | ) | 
| void mfem::PetscSolver::SetPreconditionerFactory | ( | PetscPreconditionerFactory * | factory | ) | 
| void mfem::PetscSolver::SetRelTol | ( | mfem::real_t | tol | ) | 
| void mfem::PetscSolver::SetTol | ( | mfem::real_t | tol | ) | 
| 
 | mutableprotected | 
| 
 | protected | 
| 
 | protected | 
| 
 | mutableprotected | 
| 
 | protected | 
| 
 | mutableprotected | 
| 
 | protected | 
| 
 | protected |