Commit a7553081 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Fixed small issue with arh reader.

parent b5ad74aa
...@@ -107,6 +107,8 @@ namespace AMDiS { ...@@ -107,6 +107,8 @@ namespace AMDiS {
ifstream file; ifstream file;
file.open(filename.c_str(), ios::in | ios::binary); file.open(filename.c_str(), ios::in | ios::binary);
TEST_EXIT(file.is_open())
("Cannot open file %s\n", filename.c_str());
string typeId = ""; string typeId = "";
uint32_t nMacroElements = 0; uint32_t nMacroElements = 0;
...@@ -119,8 +121,8 @@ namespace AMDiS { ...@@ -119,8 +121,8 @@ namespace AMDiS {
file.read(reinterpret_cast<char*>(&nAllValues), 4); file.read(reinterpret_cast<char*>(&nAllValues), 4);
TEST_EXIT(nValueVectors == vecs.size()) TEST_EXIT(nValueVectors == vecs.size())
("File has %d vectors, but %d DOFVectors are provided!\n", ("File %s has %d vectors, but %d DOFVectors are provided!\n",
nValueVectors, vecs.size()); filename.c_str(), nValueVectors, vecs.size());
for (unsigned int i = 0; i < nMacroElements; i++) { for (unsigned int i = 0; i < nMacroElements; i++) {
uint32_t elIndex = 0; uint32_t elIndex = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment