From 647465017376ad5fff250071cd0a47640dcca58b Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de> Date: Mon, 25 Mar 2019 16:07:36 +0100 Subject: [PATCH] [test][freeflow] Use convergencewriter in donea test --- test/freeflow/navierstokes/donea/main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/freeflow/navierstokes/donea/main.cc b/test/freeflow/navierstokes/donea/main.cc index 79d9334fb7..80e92746d2 100644 --- a/test/freeflow/navierstokes/donea/main.cc +++ b/test/freeflow/navierstokes/donea/main.cc @@ -43,6 +43,7 @@ #include <dumux/io/staggeredvtkoutputmodule.hh> #include <dumux/linear/seqsolverbackend.hh> #include <dumux/nonlinear/newtonsolver.hh> +#include <dumux/nonlinear/staggerednewtonconvergencewriter.hh> #include "problem.hh" @@ -116,6 +117,10 @@ int main(int argc, char** argv) try using NewtonSolver = Dumux::NewtonSolver<Assembler, LinearSolver>; NewtonSolver nonLinearSolver(assembler, linearSolver); + using NewtonConvergenceWriter = StaggeredNewtonConvergenceWriter<FVGridGeometry, SolutionVector>; + auto convergenceWriter = std::make_shared<NewtonConvergenceWriter>(*fvGridGeometry); + nonLinearSolver.attachConvergenceWriter(convergenceWriter); + // linearize & solve Dune::Timer timer; nonLinearSolver.solve(x); -- GitLab