From: eap Date: Fri, 25 Feb 2011 09:07:59 +0000 (+0000) Subject: 0021074: EDF 1682 MESH: Bug with start and end length hypothesis X-Git-Tag: StartingPortingMED3~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d13fde3e5eefc6584f367870329f819b45c2806b;p=modules%2Fsmesh.git 0021074: EDF 1682 MESH: Bug with start and end length hypothesis additionally fix compensateError() (for S_domain.hdf) --- diff --git a/src/StdMeshers/StdMeshers_Regular_1D.cxx b/src/StdMeshers/StdMeshers_Regular_1D.cxx index 951414c53..04695c429 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.cxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.cxx @@ -378,7 +378,7 @@ static void compensateError(double a1, double an, double q = dUn / ( nPar - 1 ); if ( !adjustNeighbors2an ) { - q = Abs( dUn / ( Utgt - Un )); // factor of segment length change + q = dUn / ( Utgt - Un ); // (signed) factor of segment length change for ( itU = theParams.rbegin(), i = 1; i < nPar; i++ ) { double prevU = *itU; (*itU) += dUn;