Hi Toddy, It’s possible to convert a triangulation iterator to a DoF iterator using the technique described here: https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators <https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators> So one way would be just to loop over the triangulation and convert that to a velocity DoFHandler iterator and a pressure DoFHandler iterator. But it looks to me that you can convert between iterators in the same manner, so if you want you could also just use a standard loop over (DoF) cell iterators, and convert that primary iterator to the other kind.
I hope that this helps! Best, Jean-Paul > On 12. Nov 2021, at 04:22, Toddy Liu <[email protected]> wrote: > > Dear Deal.II community, > > I'm programming on modifying step 35 using Parallel computing with multiple > processors using distributed memory. In step35, the tutorial program used > "synchronous" iterator which consists of two iterators, one for velocity and > the other for pressure. > > Now I'm struggling with the cell iterator when I assemble system. In step 40, > it's enough to access cells using access like > " const auto &cell : dof_handler.active_cell_iterators()". But how can I do > this when the assemble_system needs two iterators (in my case one for > velocity and the other for pressure)? > > Any advice or suggestions will be appreciated! > Thank you. > > Best, > Toddy > > -- > The deal.II project is located at http://www.dealii.org/ > <http://www.dealii.org/> > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > <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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/cb916c9f-c84c-4f94-86b9-360e0e19c7b4n%40googlegroups.com > > <https://groups.google.com/d/msgid/dealii/cb916c9f-c84c-4f94-86b9-360e0e19c7b4n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/7AB97D98-013B-4832-827A-DC761AD095BA%40gmail.com.
