From 4fb5a41f248f1bb0c80cf8351c4c3ff8e1aae8ea Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 5 Sep 2000 12:18:47 +0000 Subject: [PATCH] Move a static function to a place with better visibility. git-svn-id: https://svn.dealii.org/trunk@3296 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/error_estimator.cc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 -- 2.39.5