Set global geoemtry

This commit is contained in:
Lukas 2019-03-01 11:33:53 +01:00
parent 10ef58b54b
commit 9d01c080f9

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);
}