]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use reinit(Vector) instead of reinit(size), to make solver compatible
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 May 2000 14:15:10 +0000 (14:15 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 May 2000 14:15:10 +0000 (14:15 +0000)
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

index 0e79f6cacba376a0d749f9bd149532c52629ee69..1b7f41e5e67e7b86059a486e49b0265c65b61796 100644 (file)
@@ -188,10 +188,10 @@ SolverCG<VECTOR>::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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.