From f1e06f0a6d0ed56fab4a18955cc67f238efcb43b Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Fri, 12 Jul 2024 18:20:24 +0200 Subject: [PATCH] pickling 0D-elements --- libsrc/meshing/meshclass.cpp | 1 + libsrc/meshing/meshtype.cpp | 4 ++++ libsrc/meshing/meshtype.hpp | 1 + 3 files changed, 6 insertions(+) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index e76b81b8..85106adb 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -1839,6 +1839,7 @@ namespace netgen archive & surfelements; archive & volelements; archive & segments; + archive & pointelements; archive & facedecoding; archive & materials & bcnames & cd2names & cd3names; archive & numvertices; diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index 5cd45321..f5dcfbe1 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -145,6 +145,10 @@ namespace netgen + void Element0d :: DoArchive (Archive & ar) + { + ar & pnum & index; + } Segment :: Segment() : is_curved(false) diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index d814b850..bf044082 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -1164,6 +1164,7 @@ namespace netgen Element0d () = default; Element0d (PointIndex _pnum, int _index) : pnum(_pnum), index(_index) { ; } + void DoArchive (Archive & ar); }; ostream & operator<<(ostream & s, const Element0d & el);