From 345dc54991176f9e49441cd7a08dcfa9c4c57875 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 21 Feb 2013 02:47:35 +0000 Subject: [PATCH] Avoid use of deprecated constructor. git-svn-id: https://svn.dealii.org/trunk@28507 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-50/step-50.cc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/deal.II/examples/step-50/step-50.cc b/deal.II/examples/step-50/step-50.cc index a5a69b65f1..640c4b38be 100644 --- a/deal.II/examples/step-50/step-50.cc +++ b/deal.II/examples/step-50/step-50.cc @@ -4,7 +4,7 @@ /* $Id$ */ /* */ -/* Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ +/* Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ @@ -817,15 +817,6 @@ namespace Step50 // appropriate typedef and // then setup a smoother object. // - // Since this smoother needs temporary - // vectors to store intermediate results, - // we need to provide a VectorMemory - // object. Since these vectors will be - // reused over and over, the - // GrowingVectorMemory is more time - // efficient than the PrimitiveVectorMemory - // class in the current case. - // // The last step is to initialize the // smoother object with our level matrices // and to set some smoothing parameters. @@ -855,9 +846,7 @@ namespace Step50 // symmetric operator even for nonsymmetric // smoothers: typedef TrilinosWrappers::PreconditionSOR Smoother; - GrowingVectorMemory vector_memory; - MGSmootherPrecondition - mg_smoother(vector_memory); + MGSmootherPrecondition mg_smoother; mg_smoother.initialize(mg_matrices); mg_smoother.set_steps(2); mg_smoother.set_symmetric(true); -- 2.39.5