How to save the solution vector? #3762
Unanswered
nanguaxiaofendui
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You're taking a reference to the solution vector with You can't copy a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I made a loop, how do I save each solution vector?Please help me, thank you!
code:
for(auto m : make_range(M)){ //loop
equation_systems.init();
equation_systems.parameters.set("a") = m;
equation_systems.get_system("TEST").attach_assemble_function(assemble);
equation_systems.get_system("TEST").solve();
NumericVector & solution = *equation_systems.get_system("TEST").solution;
}
Beta Was this translation helpful? Give feedback.
All reactions