fix crash at netgen exit

This commit is contained in:
Joachim Schöberl 2017-08-27 14:51:35 +02:00
parent eccccfea62
commit 2d4bed6a77

View File

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