1#ifndef included_AMP_PetscMonitor
2#define included_AMP_PetscMonitor
4#include "AMP/utils/AMP_MPI.h"
9typedef struct _p_SNES *
SNES;
10typedef struct _p_KSP *
KSP;
12#include "petscsystypes.h"
Provides C++ wrapper around MPI routines.
Provide a monitor that petsc can use instead of the default.
void printSNESStatus(SNES snes, PetscInt iteration, PetscReal L2norm)
static std::string removeMonitor(std::string options)
Routine to pass to petsc for monitoring KSP delete.
~PetscMonitor()
Empty deconstructor.
static PetscErrorCode monitorSNES(SNES, PetscInt, PetscReal, void *)
Routine to pass to petsc for monitoring SNES.
void printKSPStatus(KSP ksp, PetscInt iteration, PetscReal L2norm)
static PetscErrorCode monitorKSP(KSP, PetscInt, PetscReal, void *)
Routine to pass to petsc for monitoring KSP.
PetscMonitor(AMP::AMP_MPI comm)
Default constructor.