]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix bug in extrude_triangulation
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 17 Feb 2013 05:46:13 +0000 (05:46 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 17 Feb 2013 05:46:13 +0000 (05:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@28434 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_generator.cc

index 0425941ce551095edaa8bc637b83ec42f52e3c1b..66a68e96028ff1ce9f31c7f46e2a77b30a7998ab 100644 (file)
@@ -3401,7 +3401,7 @@ extrude_triangulation(const Triangulation<2, 2> & input,
         const Point<2> & v = input.get_vertices()[i];
         points[i+slice*input.n_vertices()](0) = v(0);
         points[i+slice*input.n_vertices()](1) = v(1);
-        points[i+slice*input.n_vertices()](2) = height * slice / n_slices;
+        points[i+slice*input.n_vertices()](2) = height * slice / (n_slices-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.