From: Wolfgang Bangerth Date: Thu, 28 May 1998 08:33:38 +0000 (+0000) Subject: Make a function static which needs not be a member function. X-Git-Tag: v8.0.0~22886 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e12bf8dda9c4bfa1f5887013fbe4261ec6beb640;p=dealii.git Make a function static which needs not be a member function. git-svn-id: https://svn.dealii.org/trunk@368 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/numerics/error_estimator.h b/deal.II/deal.II/include/numerics/error_estimator.h index 4ab4f49b45..a1609f1601 100644 --- a/deal.II/deal.II/include/numerics/error_estimator.h +++ b/deal.II/deal.II/include/numerics/error_estimator.h @@ -155,13 +155,13 @@ class KellyErrorEstimator { */ typedef map*> FunctionMap; - void estimate_error (const DoFHandler &dof, - const Quadrature &quadrature, - const FiniteElement &fe, - const Boundary &boundary, - const FunctionMap &neumann_bc, - const dVector &solution, - dVector &error) const; + static void estimate_error (const DoFHandler &dof, + const Quadrature &quadrature, + const FiniteElement &fe, + const Boundary &boundary, + const FunctionMap &neumann_bc, + const dVector &solution, + dVector &error); /** * Exception diff --git a/deal.II/deal.II/source/numerics/error_estimator.cc b/deal.II/deal.II/source/numerics/error_estimator.cc index 5cefcb81f5..f1bfe38536 100644 --- a/deal.II/deal.II/source/numerics/error_estimator.cc +++ b/deal.II/deal.II/source/numerics/error_estimator.cc @@ -30,7 +30,7 @@ void KellyErrorEstimator<1>::estimate_error (const DoFHandler<1> &, const Boundary<1> &, const FunctionMap &, const dVector &, - dVector &) const { + dVector &) { Assert(false, ExcNotImplemented()); }; @@ -43,7 +43,7 @@ void KellyErrorEstimator::estimate_error (const DoFHandler &dof, const Boundary &boundary, const FunctionMap &neumann_bc, const dVector &solution, - dVector &error) const { + dVector &error) { Assert (neumann_bc.find(255) == neumann_bc.end(), ExcInvalidBoundaryIndicator());