]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add implementation of new 2d-geometry.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Aug 2001 09:10:40 +0000 (09:10 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Aug 2001 09:10:40 +0000 (09:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@4913 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/mapping.cc

index 990ea65d9a72978a3dec375cd0b49b5f95d8f104..3cdd5e2a7dd3a9af8b9abb61322086f1abf89cb5 100644 (file)
@@ -312,6 +312,27 @@ void create_triangulations(std::vector<Triangulation<2> *> &tria_ptr,
       exact_areas.push_back(1.5);
       show[3][5] = 1;
     }
+
+  if (4 && false)
+    {
+      Boundary<2> *boundary1=new HyperBallBoundary<2>(Point<2>(2.5,-0.5),
+                                                     sqrt(1.5*1.5+0.5*0.5));
+      boundary_ptr.push_back(boundary1);
+      tria=new Triangulation<2>();
+      tria_ptr.push_back(tria);
+      GridGenerator::hyper_cube(*tria, 0., 1.);
+      Point<2> &v2 = tria->begin_active()->vertex(2);
+      Point<2> &v3 = tria->begin_active()->vertex(3);
+      v2(0) = 2.;
+      v2(1) = 1.;
+      v3(0) = 0.5;
+      v3(1) = 1.5;
+      tria->set_boundary(1,*boundary1);
+      tria->begin_active()->face(1)->set_boundary_indicator(1);
+      exact_areas.push_back(0.);
+      for (unsigned int i=0; i<=4; ++i)
+       show[4][i]=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.