You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method is try_emplace that conditionally inserts elements into maps in C++, and is available in the C++17 standard, and it would easily improve the mesh creation time, as currently every time a new item (node, face, edge) is added to the map, it requires 2 searches (not 3).
This does mean we would be forced to use compilers which support this standard, which all of the recent ones do now so that shouldn't be too much of an issue. The only minor headache is that the compiler argument passed to msvcc is \std:c++17 and the argument passed to gnu/clang compilers is -std=c++17.
discretize/discretize/_extensions/tree.cpp
Line 172 in 90f8482
From K Davis.
There should be a faster method to directly add faces without touching the vector 3 times.
The text was updated successfully, but these errors were encountered: