From: Wolfgang Bangerth Date: Tue, 23 May 2000 14:15:10 +0000 (+0000) Subject: Use reinit(Vector) instead of reinit(size), to make solver compatible X-Git-Tag: v8.0.0~20479 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a509f968ff74ce9433eae95fd0cd0b3d5003684;p=dealii.git Use reinit(Vector) instead of reinit(size), to make solver compatible with other matrices as well. git-svn-id: https://svn.dealii.org/trunk@2927 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/solver_cg.h b/deal.II/lac/include/lac/solver_cg.h index 0e79f6cacb..1b7f41e5e6 100644 --- a/deal.II/lac/include/lac/solver_cg.h +++ b/deal.II/lac/include/lac/solver_cg.h @@ -188,10 +188,10 @@ SolverCG::solve (const MATRIX &A, // resize the vectors, but do not set // the values since they'd be overwritten // soon anyway. - g.reinit(x.size(), true); - h.reinit(x.size(), true); - d.reinit(x.size(), true); - Ad.reinit(x.size(), true); + g.reinit(x, true); + h.reinit(x, true); + d.reinit(x, true); + Ad.reinit(x, true); // Implementation taken from the DEAL // library int it=0;