mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +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)
|
if (geometry)
|
||||||
geometry -> SaveToMeshFile (ost);
|
geometry -> SaveToMeshFile (ost);
|
||||||
archive << ost.str();
|
archive << ost.str();
|
||||||
|
archive << (geometry ? curvedelems->GetOrder() : 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1331,7 +1332,10 @@ namespace netgen
|
|||||||
archive & str;
|
archive & str;
|
||||||
istringstream ist(str);
|
istringstream ist(str);
|
||||||
geometry = geometryregister.LoadFromMeshFile (ist);
|
geometry = geometryregister.LoadFromMeshFile (ist);
|
||||||
archive << curvedelems->GetOrder();
|
int order;
|
||||||
|
archive & order;
|
||||||
|
if(geometry && order > 1)
|
||||||
|
BuildCurvedElements(order);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (archive.Input())
|
if (archive.Input())
|
||||||
@ -1344,9 +1348,6 @@ namespace netgen
|
|||||||
topology.Update();
|
topology.Update();
|
||||||
clusters -> Update();
|
clusters -> Update();
|
||||||
}
|
}
|
||||||
int order;
|
|
||||||
archive << order;
|
|
||||||
BuildCurvedElements(order);
|
|
||||||
SetNextMajorTimeStamp();
|
SetNextMajorTimeStamp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user