From 368e216a4731195ddfb12ffc0f37a40011afd9ed Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 4 Jan 1999 10:09:29 +0000 Subject: [PATCH] Fix typo and add conditional compilations. git-svn-id: https://svn.dealii.org/trunk@722 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/tria_accessor.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/source/grid/tria_accessor.cc b/deal.II/deal.II/source/grid/tria_accessor.cc index 3cd54727f6..876ff92be3 100644 --- a/deal.II/deal.II/source/grid/tria_accessor.cc +++ b/deal.II/deal.II/source/grid/tria_accessor.cc @@ -645,6 +645,8 @@ Point QuadAccessor::center () const { +#if deal_II_dimension == 2 + template <> Point<2> QuadAccessor<2>::barycenter () const { // the evaluation of the formulae @@ -731,7 +733,7 @@ double QuadAccessor<2>::measure () const { /* Get the computation of the measure by this little Maple script. We use the blinear mapping of the unit quad to the real quad. However, - every transformation mapping the unit faces to strait lines should + every transformation mapping the unit faces to straight lines should do. Remember that the area of the quad is given by @@ -768,6 +770,7 @@ double QuadAccessor<2>::measure () const { x[0]*y[1]/2.0-x[3]*y[2]/2.0+x[1]*y[2]/2.0-x[2]*y[1]/2.0); }; +#endif template -- 2.39.5