Skip to content
Snippets Groups Projects
Commit f531f98f authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed setup of the preconditioner in tnl-benchmark-linear-solvers

parent 54018f38
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment