Not here, but it other functions it would be very useful to be able to map back to the owning particle. In fact, I have to treat local and ghost particles differently. In terms of updating properties, I only need to update the properties of local particles. When the maximum displacement of a particles reaches half of the cell length in the triangulation, I call sort_particles_into_subdomains_and_cells() to update the list of local and ghost particles. I can explain the algorithm in more details if you want. Thanks again. Shahab
On Thursday, December 3, 2020 at 10:54:42 PM UTC-5 Wolfgang Bangerth wrote: > 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: bang...@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/2796d59e-3e02-4888-91d5-2b9dc148ec5en%40googlegroups.com.