From b89dc62ed7e0b9d3329d339bad83c6ed83065845 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 22 Mar 2015 10:50:47 -0400 Subject: [PATCH] fix doxygen example Recent changes removed GrowingVectorMemory arguments, but this code examples hasn't been updated. --- examples/doxygen/block_matrix_array.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/doxygen/block_matrix_array.cc b/examples/doxygen/block_matrix_array.cc index 38db8e2a6b..bf6c36d59d 100644 --- a/examples/doxygen/block_matrix_array.cc +++ b/examples/doxygen/block_matrix_array.cc @@ -70,9 +70,7 @@ int main () B2.fill(B2data); C.fill(Cdata); - GrowingVectorMemory > simple_mem; - - BlockMatrixArray matrix(2, 2, simple_mem); + BlockMatrixArray 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 > mem; PreconditionIdentity id; - SolverCG > cg(control, mem); + SolverCG > 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 - 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 > gmres(control, mem); + SolverGMRES > gmres(control); gmres.solve(matrix, x, y, precondition); x.add(-1., result); deallog << "Error " << x.l2_norm() << std::endl; -- 2.39.5