Tpetra readSparseFile error
Created by: tjfulle
@trilinos/tpetra @mhoemmen
The Tpetra::MatrixMarket::Reader<Tpetra::CrsMatrix<> >::readSparseFile
method fails to read in files if there are multiple spaces between fields on the banner line. For example, given the banner
%%MatrixMarket matrix coordinate real symmetric
the reader throws the following error:
Matrix Market banner line contains syntax error(s): Data type "real symmetric" is not one of the valid values
Removing the spaces between fields, i.e.
%%MatrixMarket matrix coordinate real symmetric
resolves the problem. However, many files at http://math.nist.gov/MatrixMarket/ are formatted with multiple spaces in the banner, which leads me to believe that the MatrixMarket specification does not require a single space between fields, as assumed by Tpetra.