No, sorry... All cells. Just starting at level 0. Got confused by this line:
Triangulation <https://www.dealii.org/developer/doxygen/deal.II/classTriangulation.html>< dim, spacedim >::cell_iterator <https://www.dealii.org/developer/doxygen/deal.II/group__Iterators.html#ga997d61ac77777cdc2be3ae934b1f7cdb> Triangulation <https://www.dealii.org/developer/doxygen/deal.II/classTriangulation.html>< dim, spacedim >::begin ( const unsigned int <https://www.dealii.org/developer/doxygen/deal.II/classint.html> *level* = 0) const /Simon On Thursday, March 24, 2022 at 2:10:39 PM UTC+1 [email protected] wrote: > You will iterate from begin() to end() on the object after the colon. On > Triangulation this is the cells on level 0. > > Best, > Simon > > On Thursday, March 24, 2022 at 1:57:29 PM UTC+1 Niklas Fehn wrote: > >> thanks. I think it is nevertheless possible to write "cell : >> triangulation", and I wondered what this means exactly? >> >> [email protected] schrieb am Donnerstag, 24. März 2022 um 13:35:41 >> UTC+1: >> >>> Niklas, >>> >>> If you want cell_iterators, you write for(auto cell : >>> triangulation.cell_iterators >>> ()) If you want active_cell_iterators, you write for(auto cell : >>> triangulation.active_cell_iterators ()) The documentation is here >>> <https://dealii.org/current/doxygen/deal.II/group__CPP11.html#gaef378969994082255fbc64366511a7d1> >>> . >>> >>> Best, >>> >>> Bruno >>> On Thursday, March 24, 2022 at 8:21:42 AM UTC-4 Niklas Fehn wrote: >>> >>>> Dear dealii, >>>> >>>> when writing >>>> >>>> for(auto cell : triangulation){} >>>> >>>> which type of cell iterator is used (cell_iterators(), >>>> active_cell_iterators())? and where do I find this information in the >>>> documentation? >>>> >>>> Many thanks and >>>> >>>> Best >>>> Niklas >>>> >>> -- 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/8403cace-6ba4-4240-8d83-7d36b1832348n%40googlegroups.com.
