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
<mpovo...@purdue.edu <mailto:mpovo...@purdue.edu>> 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
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users