]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove some piece of code that could only be enabled using a ./configure switch and...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Nov 2012 02:22:40 +0000 (02:22 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Nov 2012 02:22:40 +0000 (02:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@27277 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in
deal.II/include/deal.II/multigrid/mg_smoother.h

index 0081b431e4491a2b1e5b7dbeca1ee835328b08ec..1ac517db4c7ebb4eb3c150edec0c994c92e10c59 100644 (file)
@@ -428,13 +428,6 @@ AC_ARG_ENABLE(parser,
 AC_SUBST(enableparser)
 AC_SUBST(DEAL_II_DISABLE_PARSER)
 
-AC_ARG_ENABLE(mgcompatibility,
-       AS_HELP_STRING([--enable-mgcompatibility],
-       [Use preconditioner interface in MGSmootherRelaxation instead of the new interface using the function step. Defaults to disabled.]),
-       [ if test "x$enableval" = "xyes" ; then
-           AC_MSG_RESULT(enable multigrid compatibility mode)
-           AC_DEFINE(DEAL_II_MULTIGRID_COMPATIBILITY, 1, [enable multigrid compatibility mode])
-         fi])
 
 dnl --------------------------------------------------------------
 dnl                   Backward compatibility functions
index cef5e53639799c65e00d95dd91f89b6abedc5ea2..d7ebb3e0b3ddefd22e677dd372435064a07e2a40 100644 (file)
@@ -975,65 +975,6 @@ MGSmootherRelaxation<MATRIX, RELAX, VECTOR>::initialize (
     }
 }
 
-#ifdef DEAL_II_MULTIGRID_COMPATIBILITY
-
-template <class MATRIX, class RELAX, class VECTOR>
-inline void
-MGSmootherRelaxation<MATRIX, RELAX, VECTOR>::smooth(
-  const unsigned int level,
-  VECTOR& u,
-  const VECTOR& rhs) const
-{
-  unsigned int maxlevel = matrices.get_maxlevel();
-  unsigned int steps2 = this->steps;
-
-  if (this->variable)
-    steps2 *= (1<<(maxlevel-level));
-
-  typename VectorMemory<VECTOR>::Pointer r(*this->mem);
-  typename VectorMemory<VECTOR>::Pointer d(*this->mem);
-  r->reinit(u);
-  d->reinit(u);
-
-  bool T = this->transpose;
-  if (this->symmetric && (steps2 % 2 == 0))
-    T = false;
-  if (this->debug > 0)
-    deallog << 'S' << level << ' ';
-
-  for (unsigned int i=0; i<steps2; ++i)
-    {
-      if (T)
-        {
-          if (this->debug > 0)
-            deallog << 'T';
-          matrices[level].vmult(*r,u);
-          r->sadd(-1.,1.,rhs);
-          if (this->debug > 2)
-            deallog << ' ' << r->l2_norm() << ' ';
-          smoothers[level].Tvmult(*d, *r);
-          if (this->debug > 1)
-            deallog << ' ' << d->l2_norm() << ' ';
-        } else {
-          if (this->debug > 0)
-            deallog << 'N';
-          matrices[level].vmult(*r,u);
-          r->sadd(-1.,1.,rhs);
-          if (this->debug > 2)
-            deallog << ' ' << r->l2_norm() << ' ';
-          smoothers[level].vmult(*d, *r);
-          if (this->debug > 1)
-            deallog << ' ' << d->l2_norm() << ' ';
-        }
-      u += *d;
-      if (this->symmetric)
-        T = !T;
-    }
-  if (this->debug > 0)
-    deallog << std::endl;
-}
-
-#else
 
 template <class MATRIX, class RELAX, class VECTOR>
 inline void
@@ -1065,7 +1006,6 @@ MGSmootherRelaxation<MATRIX, RELAX, VECTOR>::smooth(
     }
 }
 
-#endif
 
 
 template <class MATRIX, class RELAX, class VECTOR>

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.