Corbin,

It's possible to do it using WorkStream::run (see here 
<https://dealii.org/developer/doxygen/deal.II/namespaceWorkStream.html#ab8ceb010811941c351803b671a19fb73>)
 
However, you need to create the ordering manually by "coloring" the cells. 
All the cells in the same color can be worked on in parallel but the colors 
are treated sequentially; we first go over all the cells in color 0, then 
in color 1, etc.

Best,

Bruno

On Wednesday, August 17, 2022 at 2:05:00 PM UTC-4 corbin....@gmail.com 
wrote:

> 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
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/c097cee5-1e04-4549-8cd1-49f8a43cc8a3n%40googlegroups.com.

Reply via email to