Skip to content
Snippets Groups Projects
Verified Commit a7262d45 authored by Nils-Arne Dreier's avatar Nils-Arne Dreier
Browse files

improve error message in readMatrixMarket function

parent c36bd8b2
No related branches found
No related tags found
1 merge request!368IO matrixmarket for vectors of simd type
......@@ -925,7 +925,10 @@ namespace Dune
std::size_t rows, cols;
mm_read_header(rows,cols,header,istr, true);
if(cols!=Simd::lanes<field_type>())
DUNE_THROW(MatrixMarketFormatError, "cols does not match the number of lanes in the field_type!");
if(Simd::lanes<field_type>() == 1)
DUNE_THROW(MatrixMarketFormatError, "cols!=1, therefore this is no vector!");
else
DUNE_THROW(MatrixMarketFormatError, "cols does not match the number of lanes in the field_type!");
if(header.type!=array_type)
DUNE_THROW(MatrixMarketFormatError, "Vectors have to be stored in array format!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment