mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40: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,6 +1324,7 @@ namespace netgen
|
|||||||
if (geometry)
|
if (geometry)
|
||||||
geometry -> SaveToMeshFile (ost);
|
geometry -> SaveToMeshFile (ost);
|
||||||
archive << ost.str();
|
archive << ost.str();
|
||||||
|
archive << (geometry ? curvedelems->GetOrder() : 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1331,6 +1332,10 @@ namespace netgen
|
|||||||
archive & str;
|
archive & str;
|
||||||
istringstream ist(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())
|
if (archive.Input())
|
||||||
|
Loading…
Reference in New Issue
Block a user