From: eap Date: Fri, 2 Mar 2007 13:07:30 +0000 (+0000) Subject: PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis") X-Git-Tag: V3_2_6a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65af9ddd3002fdb957bba52be728d495bba886ee;p=modules%2Fsmesh.git PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis") fix compensateError() for adjustNeighbors2an = true --- 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;