From: Wolfgang Bangerth Date: Sun, 25 Jan 2015 18:51:50 +0000 (-0600) Subject: Remove deprecated functions Multigrid::vmult* X-Git-Tag: v8.3.0-rc1~516^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d34cbe7fb19c9de74cb34b2e6201e2fa38989426;p=dealii.git Remove deprecated functions Multigrid::vmult* --- diff --git a/doc/news/changes.h b/doc/news/changes.h index aa24f298dd..54a4a484c2 100644 --- a/doc/news/changes.h +++ b/doc/news/changes.h @@ -207,6 +207,7 @@ inconvenience this causes. - MGTools::apply_boundary_values. - MGTools::extract_inner_interface_dofs. - Class MGMatrix. + - Multigrid::vmult and friends.
This release also removes the deprecated class MGDoFHandler. The functionality of this class had previously been incorporated into diff --git a/include/deal.II/multigrid/multigrid.h b/include/deal.II/multigrid/multigrid.h index 6d514c8da5..a6d89c5c4a 100644 --- a/include/deal.II/multigrid/multigrid.h +++ b/include/deal.II/multigrid/multigrid.h @@ -136,40 +136,6 @@ public: */ void vcycle (); - /** - * @deprecated This function is purely experimental and will probably never - * be implemented in a way that it can be released. - * - * Perform a multigrid cycle with a vector which is already a level vector. - * Use of this function assumes that there is NO local refinement and that - * both vectors are on the finest level of this Multigrid object. - */ - void vmult(VECTOR &dst, const VECTOR &src) const DEAL_II_DEPRECATED; - - /** - * @deprecated This function is purely experimental and will probably never - * be implemented in a way that it can be released. - * - * Perform a multigrid cycle with a vector which is already a level vector. - * Use of this function assumes that there is NO local refinement and that - * both vectors are on the finest level of this Multigrid object. - */ - void vmult_add(VECTOR &dst, const VECTOR &src) const DEAL_II_DEPRECATED; - - /** - * @deprecated Even worse than vmult(), this function is not even - * implemented, but just declared such that certain objects relying on it - * can be constructed. - */ - void Tvmult(VECTOR &dst, const VECTOR &src) const DEAL_II_DEPRECATED; - - /** - * @deprecated Even worse than vmult(), this function is not even - * implemented, but just declared such that certain objects relying on it - * can be constructed. - */ - void Tvmult_add(VECTOR &dst, const VECTOR &src) const DEAL_II_DEPRECATED; - /** * Set additional matrices to correct residual computation at refinement * edges. Since we only smoothen in the interior of the refined part of the diff --git a/include/deal.II/multigrid/multigrid.templates.h b/include/deal.II/multigrid/multigrid.templates.h index 3f6533cb11..262b58c7ee 100644 --- a/include/deal.II/multigrid/multigrid.templates.h +++ b/include/deal.II/multigrid/multigrid.templates.h @@ -419,51 +419,6 @@ Multigrid::vcycle() } -template -void -Multigrid::vmult(VECTOR &dst, const VECTOR &src) const -{ - Multigrid &mg = const_cast&>(*this); - mg.defect[maxlevel] = src; - for (unsigned int level=maxlevel; level>minlevel; --level) - { - mg.defect[level-1] = 0.; - mg.transfer->restrict_and_add (level, - mg.defect[level-1], - mg.defect[level]); - } - - mg.cycle(); - dst = mg.solution[maxlevel]; -} - - -template -void -Multigrid::vmult_add(VECTOR &dst, const VECTOR &src) const -{ - Multigrid &mg = const_cast&>(*this); - mg.defect[maxlevel] = src; - mg.cycle(); - dst += mg.solution[maxlevel]; -} - - -template -void -Multigrid::Tvmult(VECTOR &, const VECTOR &) const -{ - Assert(false, ExcNotImplemented()); -} - - -template -void -Multigrid::Tvmult_add(VECTOR &, const VECTOR &) const -{ - Assert(false, ExcNotImplemented()); -} - DEAL_II_NAMESPACE_CLOSE #endif