From 65af9ddd3002fdb957bba52be728d495bba886ee Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 2 Mar 2007 13:07:30 +0000 Subject: [PATCH] PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis") fix compensateError() for adjustNeighbors2an = true --- 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 7bb54f6b0..b6b66718b 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.cxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.cxx @@ -348,7 +348,7 @@ static void compensateError(double a1, double an, double sign = reverse ? -1 : 1; double prevU = theParams.back(); itU = theParams.rbegin(); - for ( ++itU, i = 1; i < nPar; ++itU, i++ ) { + for ( ++itU, i = 2; i < nPar; ++itU, i++ ) { double newU = *itU + dUn; if ( newU*sign < prevU*sign ) { prevU = *itU = newU; -- 2.39.2