Show
Ignore:
Timestamp:
05/17/08 07:00:31 (6 months ago)
Author:
rjrw
Message:

Deal with FPE in grains_lte model

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newmole/source/ion_solver.cpp

    r2023 r2078  
    417417                d = SDIV(d); 
    418418                double ratio1 = a/b , ratio2 = c/d , fratio1=fabs(a/b),fratio2=fabs(c/d); 
    419                 if( fabs(ratio1-ratio2)/MAX2(fratio1,fratio2) <DBL_EPSILON*1e4 ) 
     419                if( fabs(ratio1-ratio2) <= DBL_EPSILON*1e4*MAX2(fratio1,fratio2) ) 
    420420                { 
    421421                        lgHomogeneous = true;