From f24afdf9785bd5fe4cb308ff757afc11a1311dc7 Mon Sep 17 00:00:00 2001 From: heister Date: Sun, 17 Feb 2013 05:46:13 +0000 Subject: [PATCH] fix bug in extrude_triangulation git-svn-id: https://svn.dealii.org/trunk@28434 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/grid_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/source/grid/grid_generator.cc b/deal.II/source/grid/grid_generator.cc index 0425941ce5..66a68e9602 100644 --- a/deal.II/source/grid/grid_generator.cc +++ b/deal.II/source/grid/grid_generator.cc @@ -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); } } -- 2.39.5