mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
fix mesh pickling (if there is no geometry/no curving)
This commit is contained in:
parent
a3d7be7e79
commit
ec129f6962
@ -1324,6 +1324,7 @@ namespace netgen
|
||||
if (geometry)
|
||||
geometry -> SaveToMeshFile (ost);
|
||||
archive << ost.str();
|
||||
archive << (geometry ? curvedelems->GetOrder() : 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1331,7 +1332,10 @@ namespace netgen
|
||||
archive & str;
|
||||
istringstream ist(str);
|
||||
geometry = geometryregister.LoadFromMeshFile (ist);
|
||||
archive << curvedelems->GetOrder();
|
||||
int order;
|
||||
archive & order;
|
||||
if(geometry && order > 1)
|
||||
BuildCurvedElements(order);
|
||||
}
|
||||
|
||||
if (archive.Input())
|
||||
@ -1344,9 +1348,6 @@ namespace netgen
|
||||
topology.Update();
|
||||
clusters -> Update();
|
||||
}
|
||||
int order;
|
||||
archive << order;
|
||||
BuildCurvedElements(order);
|
||||
SetNextMajorTimeStamp();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user