pickling 0D-elements

This commit is contained in:
Joachim Schoeberl 2024-07-12 18:20:24 +02:00
parent 5e9d22e496
commit f1e06f0a6d
3 changed files with 6 additions and 0 deletions

View File

@ -1839,6 +1839,7 @@ namespace netgen
archive & surfelements;
archive & volelements;
archive & segments;
archive & pointelements;
archive & facedecoding;
archive & materials & bcnames & cd2names & cd3names;
archive & numvertices;

View File

@ -145,6 +145,10 @@ namespace netgen
void Element0d :: DoArchive (Archive & ar)
{
ar & pnum & index;
}
Segment :: Segment()
: is_curved(false)

View File

@ -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);