From 3889c7e27000906fe2e5b87e2b95519b8742e873 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 19 Sep 2010 16:55:01 +0000 Subject: [PATCH] Remove file whose meaning isn't quite clear. git-svn-id: https://svn.dealii.org/trunk@22061 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/lac/mgbase.cc | 155 -------------------------------------------- 1 file changed, 155 deletions(-) delete mode 100644 tests/lac/mgbase.cc diff --git a/tests/lac/mgbase.cc b/tests/lac/mgbase.cc deleted file mode 100644 index a57fc41b12..0000000000 --- a/tests/lac/mgbase.cc +++ /dev/null @@ -1,155 +0,0 @@ -//---------------------------- mgbase.cc --------------------------- -// $Id$ -// Version: $Name$ -// -// Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 by the deal.II authors -// -// This file is subject to QPL and may not be distributed -// without copyright and license information. Please refer -// to the file deal.II/doc/license.html for the text and -// further information on this license. -// -//---------------------------- mgbase.cc --------------------------- - - -#include "../tests.h" -#include -#include -#include - -#include -#include - -class TransferTest - : - public MGTransferBase -{ - virtual void prolongate(unsigned l, - Vector& dst, - const Vector& src) const; - virtual void restrict_and_add (unsigned l, - Vector& dst, - const Vector& src) const; - friend class MGBase; -}; - -class SmoothTest - : - public MGSmootherBase -{ - public: - virtual void smooth (const unsigned int level, - Vector &u, - const Vector& rhs) const; -}; - -class MGCoarseGridTest - : - public MGCoarseGridSolver -{ - public: - virtual void operator () (unsigned int level, - Vector& dst, - const Vector& src) const ; -}; - - -class MGTest - : - public MGBase -{ - MGSmootherBase& smoother; - MGCoarseGridSolver& solver; - - public: - MGTest(TransferTest& t, SmoothTest& sm, MGCoarseGridTest& cs) - : MGBase(t, 3, 9), - smoother(sm), - solver(cs) - { - for (unsigned int l = minlevel; l <= maxlevel; ++l) - { - defect[l].reinit(1); - solution[l].reinit(1); - } - } - - virtual void level_vmult(unsigned level, - Vector& dst, - const Vector& src, - const Vector& rhs); - - virtual void print_vector(unsigned int, - const Vector &, - const char *) const; - - void doit() - { - level_mgstep(9, smoother, smoother, solver); - } -}; - -int main() -{ - std::ofstream logfile("mgbase/output"); - deallog.attach(logfile); - deallog.depth_console(0); - deallog.threshold_double(1.e-10); - - TransferTest tr; - SmoothTest s; - MGCoarseGridTest c; - - MGTest mg(tr, s, c); - mg.doit(); - -} - -void -TransferTest::prolongate(unsigned l, - Vector&, - const Vector&) const -{ - deallog << "Prolongating " << l-1 << " to " << l << std::endl; -} - -void -TransferTest::restrict_and_add (unsigned l, - Vector&, - const Vector&) const -{ - deallog << "Restricting " << l << " to " << l-1 << std::endl; -} - -void -SmoothTest::smooth (const unsigned int level, - Vector &, - const Vector&) const -{ - deallog << "Smoothing on " << level << std::endl; -} - -void -MGTest::level_vmult(unsigned l, - Vector&, - const Vector&, - const Vector&) -{ - deallog << "Residual on " << l << std::endl; -} - -void -MGTest::print_vector(unsigned int, - const Vector &, - const char *) const -{} - - - -void -MGCoarseGridTest::operator() (unsigned int level, - Vector&, - const Vector&) const -{ - deallog << "Solving on " << level << std::endl; -} -- 2.39.5