mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-15 02:18:33 +05:00
Revert changes in divide mesh
This commit is contained in:
parent
6975910031
commit
ba8172e1fe
@ -546,9 +546,10 @@ namespace netgen
|
||||
{
|
||||
auto first_new_pi = m_.pmap.Range().Next();
|
||||
auto & m = *m_.mesh;
|
||||
Array<PointIndex, PointIndex> pmap;
|
||||
pmap = m_.pmap;
|
||||
pmap.SetSize(mesh.GetNP() + m.GetNP() - first_new_pi);
|
||||
Array<PointIndex, PointIndex> pmap(m.Points().Size());
|
||||
for(auto pi : Range(PointIndex(PointIndex::BASE), first_new_pi))
|
||||
pmap[pi] = m_.pmap[pi];
|
||||
|
||||
for (auto pi : Range(first_new_pi, m.Points().Range().Next()))
|
||||
pmap[pi] = mesh.AddPoint(m[pi]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user