Dear all,
I hope you are well :).
We are currently facing a weird bottle neck. There are some operation which 
require us to set a particle property to zero and I think we are doing 
something which is not optimal at all. Right now, we loop over the 
particles, then we get the properties array view and set the property to 
zero.

I was wondering if there was a more optimal way to do this? I have profiled 
it with callgrind and it seems that getting the properties array view from 
the particle can be really expensive.
Since what we want to achieve is just to set one of these properties to 
zero, I was wondering if there was not a possible optimisation? For 
example, could we just get the array view once and assuming its continuity, 
set all of the same property to zero?
Sorry if the question seems dumb, I am really less familiar with this type 
of data structure.

Thank you so much!
Bruno


-- 
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/bb428f17-4ce1-4615-b87a-c48a8f11e960n%40googlegroups.com.

Reply via email to