Commit 6d1207b9 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Fixed KSP monitor name.

parent b48c8d0d
...@@ -845,7 +845,7 @@ namespace AMDiS { ...@@ -845,7 +845,7 @@ namespace AMDiS {
KSPSetTolerances(ksp_feti, 0, 1e-8, 1e+3, 1000); KSPSetTolerances(ksp_feti, 0, 1e-8, 1e+3, 1000);
KSPSetFromOptions(ksp_feti); KSPSetFromOptions(ksp_feti);
if (stokesMode) if (stokesMode)
KSPMonitorSet(ksp_feti, KSPMonitorFeti, &fetiKspData, PETSC_NULL); KSPMonitorSet(ksp_feti, KSPMonitorFetiStokes, &fetiKspData, PETSC_NULL);
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
namespace AMDiS { namespace AMDiS {
PetscErrorCode KSPMonitorFeti(KSP ksp, PetscInt n, PetscReal rnorm, void *data) PetscErrorCode KSPMonitorFetiStokes(KSP ksp, PetscInt n, PetscReal rnorm, void *data)
{ {
Vec Br,v,w; Vec Br,v,w;
VecDuplicate(static_cast<FetiKspData*>(data)->draft, &v); VecDuplicate(static_cast<FetiKspData*>(data)->draft, &v);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment