From: Michael P. <mpo...@pu...> - 2018-12-13 22:05:49
|
Thank you! Do you mean that I have to store the system solution in some copy, then do what you suggested and restore the solution back? On 12/13/2018 04:54 PM, David Knezevic wrote: > On Thu, Dec 13, 2018 at 4:35 PM Michael Povolotskyi > <mpo...@pu... <mailto:mpo...@pu...>> wrote: > > Hello, > > what is the recommended way to output a vector, previously added to a > system, for visualization? > > thank you! > > > I normally do: > *(system.solution) = system.get_vector("vec_name"); > > and then write out the system as usual. This of course involves > copying the vector, I'm not sure if there's a way to avoid that copy > (usually the copy would be negligible compared to the rest of the > computations though...) > > David |