Skip to content
Snippets Groups Projects
Commit 9ff08661 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Tomáš Oberhuber
Browse files

Fixing matrix reader - it can throw exceptions.

parent 64c2d435
No related branches found
No related tags found
1 merge request!48Segments
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment