From: heister Date: Fri, 15 Oct 2010 08:47:45 +0000 (+0000) Subject: speed up FGMRES by initializing the aux vector only once. The values get overwritten... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dc8b16d718a998e5b6c1e8fe0fa912650061221;p=dealii-svn.git speed up FGMRES by initializing the aux vector only once. The values get overwritten anyhow. git-svn-id: https://svn.dealii.org/trunk@22348 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/solver_gmres.h b/deal.II/lac/include/lac/solver_gmres.h index a1c76a1b7b..e43f846674 100644 --- a/deal.II/lac/include/lac/solver_gmres.h +++ b/deal.II/lac/include/lac/solver_gmres.h @@ -892,9 +892,9 @@ SolverFGMRES::solve ( // Iteration starts here VECTOR* aux = this->memory.alloc(); + aux->reinit(x); do { - aux->reinit(x); A.vmult(*aux, x); aux->sadd(-1., 1., b);