From: Timo Heister Date: Sun, 22 Mar 2015 14:50:47 +0000 (-0400) Subject: fix doxygen example X-Git-Tag: v8.3.0-rc1~367^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F679%2Fhead;p=dealii.git fix doxygen example Recent changes removed GrowingVectorMemory arguments, but this code examples hasn't been updated. --- 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;