From d13fde3e5eefc6584f367870329f819b45c2806b Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 25 Feb 2011 09:07:59 +0000 Subject: [PATCH] 0021074: EDF 1682 MESH: Bug with start and end length hypothesis additionally fix compensateError() (for S_domain.hdf) --- src/StdMeshers/StdMeshers_Regular_1D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;