3#include "../mg_diffusion_solver.h"
12 KSP ksp, PetscInt n, PetscReal rnorm,
void*)
17 VecNorm(Rhs,NORM_2,&rhs_norm);
18 if (rhs_norm < 1.0e-12)
23 KSPGetOptionsPrefix(ksp,&ksp_name);
26 const char NONAME_SOLVER[] =
"NoName-Solver\0";
28 if (ksp_name ==
nullptr)
29 ksp_name = NONAME_SOLVER;
32 KSPGetApplicationContext(ksp, &my_app_context);
35 if (my_app_context->
verbose == PETSC_TRUE)
37 std::stringstream buff;
43 << std::scientific << std::setprecision(7) << rnorm / rhs_norm
LogStream Log(LOG_LVL level=LOG_0)
PetscErrorCode MGKSPMonitor(KSP ksp, PetscInt n, PetscReal rnorm, void *)