From: guido Date: Tue, 21 Sep 2004 12:32:30 +0000 (+0000) Subject: function moved X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=113a87a1f75df42f01a4d593cbe834a8d24146c4;p=dealii-svn.git function moved git-svn-id: https://svn.dealii.org/trunk@9656 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/multigrid/mg_smoother.cc b/deal.II/deal.II/source/multigrid/mg_smoother.cc index cb2b485e31..f89d8d09cd 100644 --- a/deal.II/deal.II/source/multigrid/mg_smoother.cc +++ b/deal.II/deal.II/source/multigrid/mg_smoother.cc @@ -114,25 +114,6 @@ MGSmootherContinuous::MGSmootherContinuous ( #endif -////////////////////////////////////////////////////////////////////// - - -//TODO[GK]: this function needs to go into a .all_dimensions.cc file -template -void -MGSmootherContinuous::set_zero_interior_boundary (const unsigned int level, - VECTOR& u) const -{ - if (level==0) - return; - else - for (std::vector::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 >::MGSmootherContinuous ( const unsigned int); #endif -template -void MGSmootherContinuous >::set_zero_interior_boundary ( - const unsigned int, - Vector&) const; -template -void MGSmootherContinuous >::set_zero_interior_boundary ( - const unsigned int, - Vector&) const; -template -void MGSmootherContinuous >::set_zero_interior_boundary ( - const unsigned int, - BlockVector&) const; -template -void MGSmootherContinuous >::set_zero_interior_boundary ( - const unsigned int, - BlockVector&) const; diff --git a/deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc b/deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc index a1c6f5d221..91c66b2bc4 100644 --- a/deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc +++ b/deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -208,6 +209,21 @@ void MGTransferSelect::restrict_and_add ( } +template +void +MGSmootherContinuous::set_zero_interior_boundary ( + const unsigned int level, + VECTOR& u) const +{ + if (level==0) + return; + else + for (std::vector::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 >; @@ -223,3 +239,16 @@ template class MGTransferBlock; template class MGTransferBlock; template class MGTransferSelect; template class MGTransferSelect; + +template +void MGSmootherContinuous >::set_zero_interior_boundary ( + const unsigned int, Vector&) const; +template +void MGSmootherContinuous >::set_zero_interior_boundary ( + const unsigned int, Vector&) const; +template +void MGSmootherContinuous >::set_zero_interior_boundary ( + const unsigned int, BlockVector&) const; +template +void MGSmootherContinuous >::set_zero_interior_boundary ( + const unsigned int, BlockVector&) const;