On 08/13/2017 12:47 AM, [email protected] wrote:
I haven't got around to figuring out a good answer to the following question.
I am glad if someone could help me.
Given a *:MPI::Vector, what is the best way to assign element wise reciprocal
value?
Something like
for (i in the set of locally owned elements of the vector)
v(i) = 1./v(i);
should work. I believe that all of the MPI vector types have a way to get an
IndexSet object that describes which elements they own.
Of course, to write into a vector, it cannot store ghost elements.
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].
For more options, visit https://groups.google.com/d/optout.