PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis")

fix compensateError() for adjustNeighbors2an = true
This commit is contained in:
eap 2007-03-02 13:07:30 +00:00
parent 6b6445986f
commit 65af9ddd30

View File

@ -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;