Skip to content
Snippets Groups Projects

Issue/petsc 3 7

Merged Praetorius, Simon requested to merge issue/petsc_3-7 into master
13 files
+ 49
31
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -327,7 +327,6 @@ namespace AMDiS
rtol, atol, maxIt);
}
void createSolver(MPI::Intracomm comm, KSP &ksp, Mat m, std::string kspPrefix, int info)
{
KSPCreate(comm, &ksp);
@@ -341,9 +340,9 @@ namespace AMDiS
KSPSetOptionsPrefix(ksp, kspPrefix.c_str());
if (info >= 10)
KSPMonitorSet(ksp, KSPMonitorDefault, PETSC_NULL, PETSC_NULL);
KSPMonitorSet(ksp, PETSC_MONITOR_CAST(KSPMonitorDefault), PETSC_NULL, PETSC_NULL);
else if (info >= 20)
KSPMonitorSet(ksp, KSPMonitorTrueResidualNorm, PETSC_NULL, PETSC_NULL);
KSPMonitorSet(ksp, PETSC_MONITOR_CAST(KSPMonitorTrueResidualNorm), PETSC_NULL, PETSC_NULL);
}
} // end namespace petsc_helper
Loading