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?
That seems strange to me. The get_properties() function is in essence a
one-liner with a few indirections. Can you show the code in which you set
properties to zero?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/9608da77-8e1c-2355-7ce8-a5545df10766%40colostate.edu.