Commit 6aae899d authored by Praetorius, Simon's avatar Praetorius, Simon

ArhReader corrected

parent a3256539
......@@ -32,13 +32,15 @@ namespace AMDiS {
int nProcs)
{
int nValueVectors = getNumValueVectors(filename);
vector<DOFVector<double>*> vecs(nValueVectors, NULL);
vector<DOFVector<double>*> vecs(0);
if (nValueVectors > 0)
vecs[0] = vec0;
vecs.push_back(vec0);
if (nValueVectors > 1)
vecs[1] = vec1;
vecs.push_back(vec1);
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);
}
......
Markdown is supported
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