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

Delete mesh removed from stationary problem due to some bug in coupling problems.

parent 537e10f4
...@@ -138,10 +138,7 @@ namespace AMDiS { ...@@ -138,10 +138,7 @@ namespace AMDiS {
if (elementPrototype) if (elementPrototype)
delete elementPrototype; delete elementPrototype;
if (elementDataPrototype) if (elementDataPrototype)
delete elementDataPrototype; delete elementDataPrototype;
for (unsigned int i = 0; i < admin.size(); i++)
delete admin[i];
} }
......
...@@ -122,16 +122,22 @@ namespace AMDiS { ...@@ -122,16 +122,22 @@ namespace AMDiS {
} }
for (unsigned int i = 0; i < meshes.size(); i++) for (unsigned int i = 0; i < meshes.size(); i++)
if (meshes[i]) if (meshes[i]) {
delete meshes[i]; // delete meshes[i];
// meshes[i] = NULL;
}
for (unsigned int i = 0; i < estimator.size(); i++) for (unsigned int i = 0; i < estimator.size(); i++)
if (estimator[i]) if (estimator[i]) {
delete estimator[i]; delete estimator[i];
estimator[i] = NULL;
}
for (unsigned int i = 0; i < marker.size(); i++) for (unsigned int i = 0; i < marker.size(); i++)
if (marker[i]) if (marker[i]) {
delete marker[i]; delete marker[i];
marker[i] = NULL;
}
} }
......
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