diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 2291d365..9ec9aed3 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -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())