]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021074: EDF 1682 MESH: Bug with start and end length hypothesis
authoreap <eap@opencascade.com>
Fri, 25 Feb 2011 09:07:59 +0000 (09:07 +0000)
committereap <eap@opencascade.com>
Fri, 25 Feb 2011 09:07:59 +0000 (09:07 +0000)
   additionally fix compensateError() (for S_domain.hdf)

src/StdMeshers/StdMeshers_Regular_1D.cxx

index 951414c53b7673d1b0d19bfdde8f9ef3d0461053..04695c4294cc7548f56e2461c2df16be912b8b19 100644 (file)
@@ -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;