On 12/3/20 4:13 PM, shahab.g...@gmail.com wrote:
I want to iterate through all the particles in each iteration of my solver and update some of the properties. The problem is iterating through particles using particle_handler() is rather computationally expensive. I am looking for a way to update the properties without iterating through the particle_handler.

I see.

So you'd need to iterate through the the blocks of properties stored in the PropertyPool? We could write such an interface, but let me ask a couple of questions first:
* Do you need to map back from block of memory to the owning particle?
* Will you somehow need to treat ghost particles differently than the locally owned ones? How will you make sure that locally owned particles on one processor stay in sync with the corresponding ghost particles on the other processor(s)?

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/fb04d6f4-3eb9-9d04-aca8-84a6404e03ec%40colostate.edu.

Reply via email to