Merge branch 'fix_glob_geom' into 'master'

Set global geoemtry

See merge request jschoeberl/netgen!142
This commit is contained in:
Joachim Schöberl 2019-03-09 20:29:56 +00:00
commit 2579e0e6b0

View File

@ -253,7 +253,10 @@ void Ng_LoadMesh (const char * filename, ngcore::NgMPI_Comm comm)
istringstream geom_infile(string((const char*)&buf[0], buf.Size()));
geo = geometryregister.LoadFromMeshFile(geom_infile);
}
if(geo!=nullptr) mesh->SetGeometry(geo);
if(geo!=nullptr) {
ng_geometry = geo;
mesh->SetGeometry(geo);
}
else if(ng_geometry!=nullptr) mesh->SetGeometry(ng_geometry);
}