From: wolf Date: Tue, 5 Sep 2000 12:18:47 +0000 (+0000) Subject: Move a static function to a place with better visibility. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fb5a41f248f1bb0c80cf8351c4c3ff8e1aae8ea;p=dealii-svn.git Move a static function to a place with better visibility. git-svn-id: https://svn.dealii.org/trunk@3296 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/error_estimator.cc b/deal.II/deal.II/source/numerics/error_estimator.cc index 7ec6b19cbc..0abd75a8ce 100644 --- a/deal.II/deal.II/source/numerics/error_estimator.cc +++ b/deal.II/deal.II/source/numerics/error_estimator.cc @@ -38,6 +38,16 @@ +static +inline +double sqr (const double x) +{ + return x*x; +}; + + + + #if deal_II_dimension == 1 template <> @@ -134,10 +144,6 @@ KellyErrorEstimator::Data::Data(const DoFHandler &dof, #endif -inline static double sqr (const double x) { - return x*x; -}; - #if deal_II_dimension == 1