Skip to content
Snippets Groups Projects
Commit 6aae899d authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

ArhReader corrected

parent a3256539
No related branches found
No related tags found
No related merge requests found
...@@ -32,13 +32,15 @@ namespace AMDiS { ...@@ -32,13 +32,15 @@ namespace AMDiS {
int nProcs) int nProcs)
{ {
int nValueVectors = getNumValueVectors(filename); int nValueVectors = getNumValueVectors(filename);
vector<DOFVector<double>*> vecs(nValueVectors, NULL); vector<DOFVector<double>*> vecs(0);
if (nValueVectors > 0) if (nValueVectors > 0)
vecs[0] = vec0; vecs.push_back(vec0);
if (nValueVectors > 1) if (nValueVectors > 1)
vecs[1] = vec1; vecs.push_back(vec1);
if (nValueVectors > 2) if (nValueVectors > 2)
vecs[2] = vec2; vecs.push_back(vec2);
for (size_t i = 3; i < nValueVectors; i++)
vecs.push_back(NULL);
ArhReader::read(filename, mesh, vecs, writeParallel, nProcs); ArhReader::read(filename, mesh, vecs, writeParallel, nProcs);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment