mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
preserve volume elements in DivideMesh()
This commit is contained in:
parent
d2348a7651
commit
f0b10d696e
@ -99,6 +99,17 @@ namespace netgen
|
||||
}
|
||||
}
|
||||
|
||||
// mark used points for already existing volume elements, add them (with wrong point numbers) to domain mesh
|
||||
for(const auto & el : mesh.VolumeElements())
|
||||
{
|
||||
auto dom = el.GetIndex();
|
||||
|
||||
auto & els = ret[dom-1].mesh->VolumeElements();
|
||||
for(auto pi : el.PNums())
|
||||
ipmap[dom-1][pi] = 1;
|
||||
els.Append(el);
|
||||
}
|
||||
|
||||
// mark locked/fixed points for each domain TODO: domain bounding box to add only relevant points?
|
||||
for(auto pi : mesh.LockedPoints())
|
||||
for(auto i : Range(ret))
|
||||
@ -149,6 +160,10 @@ namespace netgen
|
||||
for(auto & pi : sel.PNums())
|
||||
pi = imap[pi];
|
||||
|
||||
for (auto & el : m.VolumeElements())
|
||||
for(auto & pi : el.PNums())
|
||||
pi = imap[pi];
|
||||
|
||||
for(auto n : Range(1,nmax+1))
|
||||
{
|
||||
NgArray<INDEX_2> pairs;
|
||||
|
Loading…
Reference in New Issue
Block a user