]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cylinder_shell fixed
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 29 Dec 2005 09:33:55 +0000 (09:33 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 29 Dec 2005 09:33:55 +0000 (09:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@11933 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_generator.cc

index a976647ff00e721110ea2e10f3adacb80d5c2f49..336fd42e4c3ba310c29e1c38c4650a6cd3d16291 100644 (file)
@@ -1384,20 +1384,20 @@ void GridGenerator::cylinder_shell (Triangulation<dim>   &tria,
                                   // first N ones are on the
                                   // outer one, and all are
                                   // numbered counter-clockwise
-  std::vector<Point<dim> > vertices_2d(2*N_r);
+  std::vector<Point<2> > vertices_2d(2*N_r);
   for (unsigned int i=0; i<N_r; ++i)
     {
-      vertices_2d[i] = Point<dim>( std::cos(2*pi * i/N_r),
+      vertices_2d[i] = Point<2>( std::cos(2*pi * i/N_r),
                                  std::sin(2*pi * i/N_r)) * outer_radius;
       vertices_2d[i+N_r] = vertices_2d[i] * (inner_radius/outer_radius);
     };
 
-  std::vector<Point<dim> > vertices_3d;
+  std::vector<Point<3> > vertices_3d;
   vertices_3d.reserve (2*N_r*(N_z+1));
   for (unsigned int j=0; j<=N_z; ++j)
     for (unsigned int i=0; i<2*N_r; ++i)
       {
-        const Point<dim> v (vertices_2d[i][0],
+        const Point<3> v (vertices_2d[i][0],
                           vertices_2d[i][1],
                           j*length/N_z);
         vertices_3d.push_back (v);

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.