wasn't worth it

This commit is contained in:
Joachim Schöberl 2017-08-17 20:58:08 +02:00
parent b20f428eae
commit a0485eece0
2 changed files with 3 additions and 14 deletions

View File

@ -3742,6 +3742,7 @@ namespace netgen
mesh.SetSurfaceElement (SurfaceElementIndex(i), el);
}
});
mesh.RebuildSurfaceElementLists();
for (int i = 1; i <= mquads.Size(); i++)
{

View File

@ -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);