From 9ff08661cf33881fd1b7ceda79ddeae9ff43a4ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com>
Date: Thu, 23 Jan 2020 22:21:56 +0100
Subject: [PATCH] Fixing matrix reader - it can throw exceptions.

---
 src/Benchmarks/LinearSolvers/tnl-benchmark-linear-solvers.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Benchmarks/LinearSolvers/tnl-benchmark-linear-solvers.h b/src/Benchmarks/LinearSolvers/tnl-benchmark-linear-solvers.h
index 9c58d25b0e..ea39d80b7b 100644
--- a/src/Benchmarks/LinearSolvers/tnl-benchmark-linear-solvers.h
+++ b/src/Benchmarks/LinearSolvers/tnl-benchmark-linear-solvers.h
@@ -365,8 +365,7 @@ struct LinearSolversBenchmark
       // load the matrix
       if( ends_with( file_matrix, ".mtx" ) ) {
          Matrices::MatrixReader< MatrixType > reader;
-         if( ! reader.readMtxFile( file_matrix, *matrixPointer ) )
-            return false;
+         reader.readMtxFile( file_matrix, *matrixPointer );
       }
       else {
          matrixPointer->load( file_matrix );
-- 
GitLab