]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix doxygen example 679/head
authorTimo Heister <timo.heister@gmail.com>
Sun, 22 Mar 2015 14:50:47 +0000 (10:50 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 22 Mar 2015 14:50:47 +0000 (10:50 -0400)
Recent changes removed GrowingVectorMemory arguments, but this code
examples hasn't been updated.

examples/doxygen/block_matrix_array.cc

index 38db8e2a6b9454dedba0afae211bb9d702a15b25..bf6c36d59d82fee1d6856eb5156f040a3028a6d3 100644 (file)
@@ -70,9 +70,7 @@ int main ()
   B2.fill(B2data);
   C.fill(Cdata);
 
-  GrowingVectorMemory<Vector<double> > simple_mem;
-
-  BlockMatrixArray<double> matrix(2, 2, simple_mem);
+  BlockMatrixArray<double> matrix(2, 2);
 
   matrix.enter(A,0,0,2.);
   matrix.enter(B1,0,1,-1.);
@@ -95,10 +93,9 @@ int main ()
   matrix.vmult(y, result);
 
   SolverControl control(100,1.e-10);
-  GrowingVectorMemory<BlockVector<double> > mem;
   PreconditionIdentity id;
 
-  SolverCG<BlockVector<double> > cg(control, mem);
+  SolverCG<BlockVector<double> > cg(control);
   cg.solve(matrix, x, y, id);
   x.add(-1., result);
   deallog << "Error " << x.l2_norm() << std::endl;
@@ -113,7 +110,7 @@ int main ()
   Cinv.invert(C);
 
   BlockTrianglePrecondition<double>
-  precondition(2, simple_mem);
+  precondition(2);
   precondition.enter(Ainv,0,0,.5);
   precondition.enter(Cinv,1,1);
 
@@ -124,7 +121,7 @@ int main ()
   precondition.enter(B1,1,0,-1., true);
   precondition.enter(B2,1,0,1.);
 
-  SolverGMRES<BlockVector<double> > gmres(control, mem);
+  SolverGMRES<BlockVector<double> > gmres(control);
   gmres.solve(matrix, x, y, precondition);
   x.add(-1., result);
   deallog << "Error " << x.l2_norm() << std::endl;

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.