]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix several bugs that were introduced by last patch. (When MappingQ(4) test cases...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 Jan 2004 09:56:19 +0000 (09:56 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 Jan 2004 09:56:19 +0000 (09:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@8355 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/mapping.cc

index 27de17f80f5d17a3628f7d913e3fa5cf3d6fb567..165d7609819f4031573497c6d4dde42a317a19fc 100644 (file)
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (C) 2001, 2002, 2003 Ralf Hartmann
+// Copyright (C) 2001, 2002, 2003, 2004 Ralf Hartmann
 //
 // Shows the shape functions implemented and computes the area of cells.
 
@@ -231,7 +231,7 @@ void create_triangulations(std::vector<Triangulation<1> *> &tria_ptr,
   exact_areas.push_back(2.);
   show[0][0]=1;
   show[0][1]=1;
-  show[0][5]=1;
+  show[0][4]=1;
 }
 
 
@@ -306,7 +306,7 @@ void create_triangulations(std::vector<Triangulation<2> *> &tria_ptr,
       double pi=acos(-1);
       double alpha=2*atan(0.5);
       exact_areas.push_back(4+pi-2.5*(alpha-sin(alpha)));
-      for (unsigned int i=0; i<=4; ++i)
+      for (unsigned int i=0; i<=3; ++i)
        show[2][i]=1;
     }
 
@@ -322,7 +322,7 @@ void create_triangulations(std::vector<Triangulation<2> *> &tria_ptr,
       p1(1) = 4.;
       GridGenerator::hyper_rectangle(*tria, p0, p1);
       exact_areas.push_back(1.5);
-      show[3][5] = 1;
+      show[3][4] = 1;
     }
 
   if (4 && false)
@@ -431,7 +431,7 @@ void create_triangulations(std::vector<Triangulation<3> *> &tria_ptr,
       p1(2) = 6.;
       GridGenerator::hyper_rectangle(*tria, p0, p1);
       exact_areas.push_back(4.5);
-      show[4][5] = 1;
+      show[4][4] = 1;
     }
 }
 

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.