On 2/28/20 12:49 AM, 'Maxi Miller' via deal.II User Group wrote:
After additional tests I noticed that I'm not only overwriting the
target_component-component with the new values, but also the other
components, but with 0 instead. But instead I do not want to touch them.
How can I do that (if possible)?
Let interpolate_b_v put its results into a temporary vector and then
only copy over those elements you are interested in. If you are using
block vectors, then that means just copying the block that matters.
Otherwise you'll have to identify for each unknown which component it
corresponds to (I think that there are functions for this in DoFTools)
and then copy only those elements.
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/a269a4ec-16b2-10a2-199b-ba5f86f448ce%40colostate.edu.