]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis")
authoreap <eap@opencascade.com>
Fri, 2 Mar 2007 13:07:30 +0000 (13:07 +0000)
committereap <eap@opencascade.com>
Fri, 2 Mar 2007 13:07:30 +0000 (13:07 +0000)
   fix compensateError() for adjustNeighbors2an = true

src/StdMeshers/StdMeshers_Regular_1D.cxx

index 7bb54f6b00ba4f5ad02534aad0f74a8da89ed179..b6b66718b9b096868d5575f7fe9214ef1185f461 100644 (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;