From 9c6caf3d6d93b5ce005e2bb5721c295edc909e3c Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 23 May 2000 14:15:10 +0000 Subject: [PATCH] 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 --- deal.II/lac/include/lac/solver_cg.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5