Thank you very much for your prompt reply, Konrad! My confusion is the output of cell->id(), for example, 0_3:000 0_3:200 0_3:003 0_3:006 0_3:406 0_3:606 0_3:206 0_3:007 0_3:407 0_3:607 0_3:207.
What type I need to use as the key in std::map? And is the map parallel-distributed? Because my model requires that. I have some preliminary results based on Dr. W. Bangerth's latest suggest. Best regards, Z. B. Zhang On Sunday, October 20, 2019 at 11:44:23 AM UTC-4, Konrad Simon wrote: > > > Hi Zhidong, > > I don't know what exactly you want to do but I found it quite useful that > the CellId class has an order relation. That makes it usable in a std::map. > Use the CellId (you can retrieve it through cell-->id() if cell is a cell > accessor like the one you use to loop over all your cells) as a key then > and connect to it an object that, for example, contains specific > information about your cell(s). > > Best, > Konrad > -- 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/c5f6448b-92ad-4cac-807b-813f87cbd710%40googlegroups.com.
