delete global mesh the old way

This commit is contained in:
Joachim Schöberl 2017-08-28 17:23:31 +02:00
parent 74c8fa5cf4
commit e33c859a43

View File

@ -103,13 +103,11 @@ namespace netgen
Ngx_Mesh :: ~Ngx_Mesh () Ngx_Mesh :: ~Ngx_Mesh ()
{ {
/* // causes crashes when global variable netgen::mesh is destructed
// causes crashes when global variable netgen::mesh is destructed // before visualization data
// before visualization data
if (mesh == netgen::mesh) if (mesh == netgen::mesh)
netgen::mesh = nullptr; netgen::mesh = nullptr;
*/
} }
int Ngx_Mesh :: GetDimension() const int Ngx_Mesh :: GetDimension() const