On 2/27/19 4:03 AM, mboron1...@gmail.com wrote: > > I have checked Step-40. Lets say we have an*old_locally_relevant_solution > *vector and a *new_locally_relevant_solution_update* vector (*extracted from > the completely distributed solution in the solve module*). How can we add > these two vectors in DEALII. Thanking you in anticipation.
Since locally relevant vectors have ghost elements, they are read-only. You need to create completely distributed vectors out of these. You can add them together, and then make locally relevant vectors again. (Or do the addition *before* converting the update vector into a locally relevant one.) 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. For more options, visit https://groups.google.com/d/optout.