From: wolf Date: Mon, 4 Jan 1999 10:09:29 +0000 (+0000) Subject: Fix typo and add conditional compilations. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=368e216a4731195ddfb12ffc0f37a40011afd9ed;p=dealii-svn.git Fix typo and add conditional compilations. git-svn-id: https://svn.dealii.org/trunk@722 0785d39b-7218-0410-832d-ea1e28bc413d --- 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