mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
save/load pointelements
This commit is contained in:
parent
4a1d3cdcb2
commit
10c0fd350a
@ -604,6 +604,19 @@ namespace netgen
|
||||
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)
|
||||
{
|
||||
outfile << "identifications\n";
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user