Ignore:
Timestamp:
11/02/15 11:46:32 (8 years ago)
Author:
mhnguyen
Message:

Adding a dummy precision

+) A dummy precision serves for operation with error-rouding (such as interpolation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/utils.hpp

    r775 r776  
    231231    return std::numeric_limits<Scalar>::epsilon(); 
    232232  } 
     233  static inline Scalar dummy_precision() { 
     234    return 0; 
     235  } 
    233236}; 
    234237 
     
    250253  static inline Scalar epsilon() { 
    251254    return std::numeric_limits<Scalar>::epsilon(); 
     255  } 
     256  static inline Scalar dummy_precision() { 
     257    return 1e-12; 
    252258  } 
    253259}; 
Note: See TracChangeset for help on using the changeset viewer.