mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
wasn't worth it
This commit is contained in:
parent
b20f428eae
commit
a0485eece0
@ -3742,6 +3742,7 @@ namespace netgen
|
||||
mesh.SetSurfaceElement (SurfaceElementIndex(i), el);
|
||||
}
|
||||
});
|
||||
mesh.RebuildSurfaceElementLists();
|
||||
|
||||
for (int i = 1; i <= mquads.Size(); i++)
|
||||
{
|
||||
|
@ -345,26 +345,14 @@ namespace netgen
|
||||
if (el.index > facedecoding.Size())
|
||||
cerr << "has no facedecoding: fd.size = " << facedecoding.Size() << ", ind = " << el.index << endl;
|
||||
|
||||
// add lock-free to list ... slow, call RebuildSurfaceElementLists later
|
||||
/*
|
||||
surfelements.Last().next = facedecoding[el.index-1].firstelement;
|
||||
facedecoding[el.index-1].firstelement = sei;
|
||||
*/
|
||||
|
||||
// add lock-free to list
|
||||
|
||||
surfelements[sei].next = facedecoding[el.index-1].firstelement;
|
||||
auto & head = reinterpret_cast<atomic<SurfaceElementIndex>&> (facedecoding[el.index-1].firstelement);
|
||||
while (!head.compare_exchange_weak (surfelements[sei].next, sei))
|
||||
;
|
||||
|
||||
/*
|
||||
surfelements[sei].next = facedecoding[el.index-1].firstelement;
|
||||
auto & head = reinterpret_cast<atomic<int>&> (facedecoding[el.index-1].firstelement);
|
||||
auto & next = reinterpret_cast<int&> (surfelements[sei].next);
|
||||
while (!head.compare_exchange_weak (next, sei))
|
||||
;
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
if (SurfaceArea().Valid())
|
||||
SurfaceArea().Add (el);
|
||||
|
Loading…
Reference in New Issue
Block a user