Skip to content
Snippets Groups Projects
Commit 1ffb8ead authored by Oliver Sander's avatar Oliver Sander
Browse files

Fix various typos in error messages

parent b0efdba0
No related branches found
No related tags found
No related merge requests found
......@@ -765,7 +765,7 @@ namespace Dune
std::size_t size=rows/entries;
if(size*entries!=rows)
DUNE_THROW(MatrixMarketFormatError, "Block size of vector is not correct1");
DUNE_THROW(MatrixMarketFormatError, "Block size of vector is not correct!");
vector.resize(size);
......@@ -1045,7 +1045,7 @@ namespace Dune
std::ifstream file;
file.open(rfilename.str().c_str(), std::ios::in);
if(!file)
DUNE_THROW(IOError, "Could not open file" << rfilename.str().c_str());
DUNE_THROW(IOError, "Could not open file: " << rfilename.str().c_str());
//if(!file.is_open())
//
readMatrixMarket(matrix,file);
......@@ -1082,7 +1082,7 @@ namespace Dune
std::string s;
file>>s;
if(s!="neighbours:")
DUNE_THROW(MatrixMarketFormatError, "was exspecting the string: \"neighbours:\"");
DUNE_THROW(MatrixMarketFormatError, "was expecting the string: \"neighbours:\"");
std::set<int> nb;
while(!file.eof()) {
int i;
......@@ -1114,7 +1114,7 @@ namespace Dune
std::ifstream file;
file.open(filename.c_str(), std::ios::in);
if(!file)
DUNE_THROW(IOError, "Could not open file" << filename);
DUNE_THROW(IOError, "Could not open file: " << filename);
readMatrixMarket(matrix,file);
file.close();
}
......
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