Skip to content
Snippets Groups Projects
Commit 65addaee authored by Boris Martin's avatar Boris Martin
Browse files

Added Solver Monitor interface

parent 543a9901
No related branches found
No related tags found
No related merge requests found
Pipeline #11550 passed
// GmshFEM - Copyright (C) 2023, B. Martin, C. Geuzaine, Université de Liège
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/fem/issues
#ifndef H_GMSHFEM_SOLVER_MONITOR
#define H_GMSHFEM_SOLVER_MONITOR
typedef struct _p_KSP *KSP;
#ifdef HAVE_PETSC
#include "petscksp.h"
#endif
namespace gmshfem::system
{
struct AbstractMonitor {
#ifdef HAVE_PETSC
virtual PetscErrorCode Monitor(KSP ksp, PetscInt n, PetscReal rnorm) = 0;
#endif
virtual ~AbstractMonitor() = default;
};
} // namespace gmshfem::system
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment