From 12c99e466da03b0863596e23dd8c5f72e272c56e Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 27 Jun 2001 14:40:28 +0000 Subject: [PATCH] Oups, wrong geometric progression for ratio=1 --- Mesh/3D_Extrude_Old.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mesh/3D_Extrude_Old.cpp b/Mesh/3D_Extrude_Old.cpp index 09dbcaba7b..5af6222b08 100644 --- a/Mesh/3D_Extrude_Old.cpp +++ b/Mesh/3D_Extrude_Old.cpp @@ -1,4 +1,4 @@ -// $Id: 3D_Extrude_Old.cpp,v 1.9 2001-06-27 10:52:18 geuzaine Exp $ +// $Id: 3D_Extrude_Old.cpp,v 1.10 2001-06-27 14:40:28 geuzaine Exp $ // This is the old extrusion mesh generator -> only available through // the command line option -extrude (w/o -recombine). This mesh @@ -382,7 +382,7 @@ static void Extrude_Vertex (void *data , void *dum){ // Sum of n (=NbElmLayer[i]) terms = hLayer[i] = a (r^n-1)/(r-1) if(parLayer[i] == 1.) - a = hLayer[i] ; + a = hLayer[i]/(double)NbElmLayer[i]; else a = hLayer[i] * (parLayer[i]-1.)/(pow(parLayer[i],NbElmLayer[i])-1.) ; -- GitLab