mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
0021074: EDF 1682 MESH: Bug with start and end length hypothesis
fix compensateError()
This commit is contained in:
parent
c9be9c7276
commit
fe6540c515
@ -377,10 +377,14 @@ static void compensateError(double a1, double an,
|
||||
}
|
||||
|
||||
double q = dUn / ( nPar - 1 );
|
||||
if ( !adjustNeighbors2an ) {
|
||||
for ( itU = theParams.rbegin(), i = 1; i < nPar; itU++, i++ ) {
|
||||
if ( !adjustNeighbors2an )
|
||||
{
|
||||
q = Abs( dUn / ( Utgt - Un )); // factor of segment length change
|
||||
for ( itU = theParams.rbegin(), i = 1; i < nPar; i++ ) {
|
||||
double prevU = *itU;
|
||||
(*itU) += dUn;
|
||||
dUn -= q;
|
||||
++itU;
|
||||
dUn = q * (*itU - prevU) * (prevU-U1)/(Un-U1);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user