mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 10:45:36 +05:00
19296: EDF 681 SMESH - Pre-evaluation of the number of elements before mesh
protect ARITHMETIC_1D from FPE
This commit is contained in:
parent
3ac780626e
commit
29e9d54dae
@ -757,7 +757,7 @@ bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh & theMesh,
|
||||
double an = _value[ END_LENGTH_IND ];
|
||||
|
||||
double q = ( an - a1 ) / ( 2 *theLength/( a1 + an ) - 1 );
|
||||
int n = int( 1 + ( an - a1 ) / q );
|
||||
int n = fabs(q) > numeric_limits<double>::min() ? int( 1 + ( an - a1 ) / q ) : 1+theLength/a1;
|
||||
|
||||
double U1 = theReverse ? l : f;
|
||||
double Un = theReverse ? f : l;
|
||||
|
Loading…
Reference in New Issue
Block a user