]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix typo and add conditional compilations.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 4 Jan 1999 10:09:29 +0000 (10:09 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 4 Jan 1999 10:09:29 +0000 (10:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@722 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria_accessor.cc

index 3cd54727f607889c814da1399ed93d62898c02a9..876ff92be3aac819502e79c017c4b8df9cf81bfb 100644 (file)
@@ -645,6 +645,8 @@ Point<dim> QuadAccessor<dim>::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 <int dim>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.