Hello everyone,
I have a problem in which I'm propagating information downwards in depth by solving the same local finite element problem on each element in an adaptive grid. The only condition is that the cells above the current cell must have already been worked on.
I'm looking for a way to loop over cells using something akin to MeshWorker::mesh_loop or WorkStream::run, but with a custom order, namely, according to the z-coordinate of each cell center. Is there a simple way to do this?
If not, I can always loop over the cells manually by recording a depth-sorted list, but then I'd lose the multi-thread capabilities of mesh_loop() and the like. Any advice would be appreciated.
Thank you,
Corbin