]> https://gitweb.dealii.org/ - dealii.git/commitdiff
function moved
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 21 Sep 2004 12:32:30 +0000 (12:32 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 21 Sep 2004 12:32:30 +0000 (12:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@9656 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/multigrid/mg_smoother.cc
deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc

index cb2b485e31aea76a8cc8baf69ee45c8f88d707d1..f89d8d09cd63e05c19b22e604b787d86883b1f18 100644 (file)
@@ -114,25 +114,6 @@ MGSmootherContinuous<VECTOR>::MGSmootherContinuous (
 
 #endif
 
-//////////////////////////////////////////////////////////////////////
-
-
-//TODO[GK]: this function needs to go into a .all_dimensions.cc file
-template <class VECTOR>
-void
-MGSmootherContinuous<VECTOR>::set_zero_interior_boundary (const unsigned int level,
-                                                 VECTOR&            u) const
-{
-  if (level==0)
-    return;
-  else
-    for (std::vector<unsigned int>::const_iterator p=interior_boundary_dofs[level-1].begin();
-        p!=interior_boundary_dofs[level-1].end(); ++p)
-      u(*p) = 0;
-}
-
-//////////////////////////////////////////////////////////////////////
-
 
 // explicit instantiations
 
@@ -153,19 +134,3 @@ template MGSmootherContinuous<BlockVector<double> >::MGSmootherContinuous (
   const unsigned int);
 #endif
 
-template
-void MGSmootherContinuous<Vector<double> >::set_zero_interior_boundary (
-  const unsigned int,
-  Vector<double>&) const;
-template
-void MGSmootherContinuous<Vector<float> >::set_zero_interior_boundary (
-  const unsigned int,
-  Vector<float>&) const;
-template
-void MGSmootherContinuous<BlockVector<double> >::set_zero_interior_boundary (
-  const unsigned int,
-  BlockVector<double>&) const;
-template
-void MGSmootherContinuous<BlockVector<float> >::set_zero_interior_boundary (
-  const unsigned int,
-  BlockVector<float>&) const;
index a1c6f5d2212e6bee35ffd16c41de5056fbb129da..91c66b2bc4b9b439fbd4a67d0f96458c299c4079 100644 (file)
@@ -17,6 +17,7 @@
 #include <lac/sparse_matrix.h>
 #include <lac/block_sparse_matrix.h>
 #include <multigrid/mg_transfer.h>
+#include <multigrid/mg_smoother.h>
 #include <multigrid/mg_transfer.templates.h>
 #include <multigrid/multigrid.templates.h>
 
@@ -208,6 +209,21 @@ void MGTransferSelect<number>::restrict_and_add (
 }
 
 
+template <class VECTOR>
+void
+MGSmootherContinuous<VECTOR>::set_zero_interior_boundary (
+  const unsigned int level,
+  VECTOR&            u) const
+{
+  if (level==0)
+    return;
+  else
+    for (std::vector<unsigned int>::const_iterator p=interior_boundary_dofs[level-1].begin();
+        p!=interior_boundary_dofs[level-1].end(); ++p)
+      u(*p) = 0;
+}
+
+
 // Explicit instantiations
 
 template class Multigrid<Vector<float> >;
@@ -223,3 +239,16 @@ template class MGTransferBlock<float>;
 template class MGTransferBlock<double>;
 template class MGTransferSelect<float>;
 template class MGTransferSelect<double>;
+
+template
+void MGSmootherContinuous<Vector<double> >::set_zero_interior_boundary (
+  const unsigned int, Vector<double>&) const;
+template
+void MGSmootherContinuous<Vector<float> >::set_zero_interior_boundary (
+  const unsigned int, Vector<float>&) const;
+template
+void MGSmootherContinuous<BlockVector<double> >::set_zero_interior_boundary (
+  const unsigned int, BlockVector<double>&) const;
+template
+void MGSmootherContinuous<BlockVector<float> >::set_zero_interior_boundary (
+  const unsigned int, BlockVector<float>&) const;

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.