From f531f98ff88e25b2b2e277119e77fe3c60369595 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz>
Date: Mon, 1 Oct 2018 21:26:48 +0200
Subject: [PATCH] Fixed setup of the preconditioner in
 tnl-benchmark-linear-solvers

---
 src/Benchmarks/LinearSolvers/benchmarks.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Benchmarks/LinearSolvers/benchmarks.h b/src/Benchmarks/LinearSolvers/benchmarks.h
index e100bba02c..032ed74ed2 100644
--- a/src/Benchmarks/LinearSolvers/benchmarks.h
+++ b/src/Benchmarks/LinearSolvers/benchmarks.h
@@ -48,6 +48,7 @@ benchmarkPreconditionerUpdate( Benchmark& benchmark,
    barrier( matrix );
    const char* performer = getPerformer< typename Matrix::DeviceType >();
    Preconditioner< Matrix > preconditioner;
+   preconditioner.setup( parameters );
 
    auto reset = []() {};
    auto compute = [&]() {
@@ -78,6 +79,7 @@ benchmarkSolver( Benchmark& benchmark,
    solver.setSolverMonitor( benchmark.getMonitor() );
 
    auto pre = std::make_shared< Preconditioner< Matrix > >();
+   pre->setup( parameters );
    solver.setPreconditioner( pre );
    // preconditioner update may throw if it's not implemented for CUDA
    try {
-- 
GitLab