mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-25 04:10:33 +05:00
Merge branch 'fix_glob_geom'
This commit is contained in:
commit
3673b7c77b
@ -253,7 +253,10 @@ void Ng_LoadMesh (const char * filename, ngcore::NgMPI_Comm comm)
|
|||||||
istringstream geom_infile(string((const char*)&buf[0], buf.Size()));
|
istringstream geom_infile(string((const char*)&buf[0], buf.Size()));
|
||||||
geo = geometryregister.LoadFromMeshFile(geom_infile);
|
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);
|
else if(ng_geometry!=nullptr) mesh->SetGeometry(ng_geometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user