save/load pointelements

This commit is contained in:
Michael 2020-10-30 15:28:00 +01:00
parent 4a1d3cdcb2
commit 10c0fd350a

View File

@ -602,7 +602,20 @@ namespace netgen
outfile << (*this)[pi](1)/scale << " ";
outfile.width(22);
outfile << (*this)[pi](2)/scale << "\n";
}
}
outfile << "\n" << "\n";
outfile << "# pnum index" << "\n";
outfile << "pointelements" << "\n";
outfile << pointelements.Size() << "\n";
for (i = 0; i < pointelements.Size(); i++)
{
outfile.width(8);
outfile << pointelements[i].pnum << " ";
outfile.width(8);
outfile << pointelements[i].index << "\n";
}
if (ident -> GetMaxNr() > 0)
{
@ -1083,6 +1096,19 @@ namespace netgen
PrintMessage (3, n, " points done");
}
if (strcmp (str, "pointelements") == 0)
{
infile >> n;
PrintMessage (3, n, " pointelements");
for (i = 1; i <= n; i++)
{
Element0d el;
infile >> el.pnum >> el.index;
pointelements.Append (el);
}
PrintMessage (3, n, " pointelements done");
}
if (strcmp (str, "identifications") == 0)
{
infile >> n;