On 8/17/22 13:04, Bruno Turcksin wrote:
It's possible to do it using WorkStream::run (see here
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdealii.org%2Fdeveloper%2Fdoxygen%2Fdeal.II%2FnamespaceWorkStream.html%23ab8ceb010811941c351803b671a19fb73&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Ca97d7a48b22746f58ad208da808340b0%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637963598455384647%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jCYZjVQjmFZ2YEuOUsJtrj8ZSgabPVskjBEfZQGGZfM%3D&reserved=0>)
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.
Alternatively, WorkStream works on a set of iterators. These can be the
iterators into a
std::set<DoFHandler::active_cell_iterator, COMP>
if you choose the right comparator object that ensures that
active_cell_iterators that need to be worked on first compare as less
than those active_cell_iterators that need to be worked on later.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
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/3bfcbc01-1e72-46e3-2320-f0b5a9974a89%40colostate.edu.