From c5b4a436149b95d7ed84e9d85a77d9cc044e7192 Mon Sep 17 00:00:00 2001 From: Timo Koch <timokoch@uio.no> Date: Sun, 14 Jul 2024 13:22:31 +0200 Subject: [PATCH] [test][fix] Read parameters so line search is actually tested --- test/nonlinear/newton/test_newton.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/nonlinear/newton/test_newton.cc b/test/nonlinear/newton/test_newton.cc index 2ce88a9f33..59879ac623 100644 --- a/test/nonlinear/newton/test_newton.cc +++ b/test/nonlinear/newton/test_newton.cc @@ -14,6 +14,7 @@ #include <dune/istl/bvector.hh> #include <dumux/common/initialize.hh> +#include <dumux/common/parameters.hh> #include <dumux/nonlinear/newtonsolver.hh> /* @@ -85,6 +86,9 @@ int main(int argc, char* argv[]) // maybe initialize MPI and/or multithreading backend Dumux::initialize(argc, argv); + // initialize parameters + Dumux::Parameters::init(argc, argv); + // use the Newton solver to find a solution to a scalar equation using Assembler = MockScalarAssembler; using LinearSolver = MockScalarLinearSolver; -- GitLab