Commit 5988cddb authored by Praetorius, Simon's avatar Praetorius, Simon

PngReader changed to 'new' localIndices dataStructure

parent 1c8b8100
......@@ -69,7 +69,7 @@ namespace AMDiS {
const BasisFunction *basFcts = vec->getFeSpace()->getBasisFcts();
int numBasFcts = basFcts->getNumber();
DegreeOfFreedom *localIndices = new DegreeOfFreedom[numBasFcts];
std::vector<DegreeOfFreedom> localIndices(numBasFcts);
double xMin = 0.0, xMax = 1.0, yMin = 0.0, yMax = 1.0;
getMeshDimension(vec->getFeSpace()->getMesh(), xMin, xMax, yMin, yMax);
......@@ -105,8 +105,6 @@ namespace AMDiS {
elInfo = stack.traverseNext(elInfo);
}
delete [] localIndices;
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
fclose(fp);
};
......
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