Skip to content
Snippets Groups Projects
Commit f783a5e7 authored by Tobias Malkmus's avatar Tobias Malkmus Committed by Steffen Müthing
Browse files

[Release][GMRES] don't copy the Krylov basis in the update method

The full krylov basis is copied in the call of the method update(),
working with a reference to the krylov basis reduced the peak amount of allocated memory
by a factor of about 1.7 and improves the runtime by 4%.

Steffen: Also constified all applicable function arguments as suggested
         by Christian.

Closes FS#1378
parent a2c520ae
No related branches found
No related tags found
No related merge requests found
......@@ -1301,8 +1301,8 @@ namespace Dune {
static void
update(X &x, int k,
std::vector< std::vector<field_type> > & h,
std::vector<field_type> & s, std::vector<F> v)
const std::vector< std::vector<field_type> > & h,
const std::vector<field_type> & s, const std::vector<F> &v)
{
std::vector<field_type> y(s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment