mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Merge branch 'archive_mesh_curving' into 'master'
pickle curving of mesh See merge request jschoeberl/netgen!105
This commit is contained in:
commit
cdd871282e
@ -1324,13 +1324,18 @@ namespace netgen
|
||||
if (geometry)
|
||||
geometry -> SaveToMeshFile (ost);
|
||||
archive << ost.str();
|
||||
archive << (geometry ? curvedelems->GetOrder() : 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
string str;
|
||||
archive & str;
|
||||
istringstream ist(str);
|
||||
geometry = geometryregister.LoadFromMeshFile (ist);
|
||||
geometry = geometryregister.LoadFromMeshFile (ist);
|
||||
int order;
|
||||
archive & order;
|
||||
if(geometry && order > 1)
|
||||
BuildCurvedElements(order);
|
||||
}
|
||||
|
||||
if (archive.Input())
|
||||
|
Loading…
Reference in New Issue
Block a user