On Wednesday, July 10, 2019 at 3:56:02 PM UTC-4, Stephen wrote:
I have an error estimator which I need to calculate between edges and I'd like to loop over all edges in the triangulation. I know that I can do this the "traditional" way via looping over all cells and then looping over all faces in the cell but, if I do this, I end up calculating the same thing twice since I then run over non-boundary faces once from one cell and then again from it's neighbour; this is not acceptable since efficiency is really of paramount importance in the code I'm currently writing. Is it possible to instead loop over all active edges in the triangulation and then find the cell IDs of the cells which neighbour this face? This way I should be able to calculate the terms directly on the edge instead of trying to go via the cell first. Thanks!