Ignore:
Timestamp:
01/23/19 10:31:44 (5 years ago)
Author:
yushan
Message:

dev on ADA. add flag switch _usingEP/_usingMPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/parse_expr/operator_expr.hpp

    r1545 r1642  
    264264       else return x == y; 
    265265    } 
    266  
     266     
    267267    static inline double lt_ss(double x, double y)    { return x < y; } 
    268268    static inline double gt_ss(double x, double y)    { return x > y; } 
    269269    static inline double le_ss(double x, double y)    { return x <= y; } 
    270270    static inline double ge_ss(double x, double y)    { return x >= y; } 
     271 
    271272    static inline double ne_ss(double x, double y) // specific check for NaN 
    272273    { 
     
    278279       else return x != y; 
    279280    } 
    280  
     281     
    281282    static inline CArray<double,1> neg_f(const CArray<double,1>& x)   { return Array<double,1>(-x); } 
    282283    static inline CArray<double,1> cos_f(const CArray<double,1>& x)   { return Array<double,1>(cos(x)); } 
     
    305306    static inline CArray<double,1> div_fs(const CArray<double,1>& x, double y)   { return Array<double,1>(x / y); } 
    306307    static inline CArray<double,1> pow_fs(const CArray<double,1>& x, double y)   { return Array<double,1>(pow(x,y)); } 
     308 
    307309    static inline CArray<double,1> eq_fs(const CArray<double,1>& x, double y) // specific check for NaN 
    308310    { 
     
    317319      else return Array<double,1>(x == y);  
    318320    } 
    319  
     321     
    320322    static inline CArray<double,1> lt_fs(const CArray<double,1>& x, double y)    { return Array<double,1>(x < y); } 
    321323    static inline CArray<double,1> gt_fs(const CArray<double,1>& x, double y)    { return Array<double,1>(x > y); } 
    322324    static inline CArray<double,1> le_fs(const CArray<double,1>& x, double y)    { return Array<double,1>(x <= y); } 
    323325    static inline CArray<double,1> ge_fs(const CArray<double,1>& x, double y)    { return Array<double,1>(x >= y); } 
     326 
    324327    static  inline CArray<double,1> ne_fs(const CArray<double,1>& x, double y) // specific check for NaN 
    325328    { 
     
    339342    static inline CArray<double,1> mult_sf(double x, const CArray<double,1>& y)  { return Array<double,1>(x * y); } 
    340343    static inline CArray<double,1> div_sf(double x, const CArray<double,1>& y)   { return Array<double,1>(x / y); } 
     344 
    341345    static inline CArray<double,1> eq_sf(double x, const CArray<double,1>& y) // specific check for NaN 
    342346    { 
     
    355359    static inline CArray<double,1> le_sf(double x, const CArray<double,1>& y)    { return Array<double,1>(x <= y); } 
    356360    static inline CArray<double,1> ge_sf(double x, const CArray<double,1>& y)    { return Array<double,1>(x >= y); } 
     361 
    357362    static inline CArray<double,1> ne_sf(double x, const CArray<double,1>& y) // specific check for NaN 
    358363    { 
Note: See TracChangeset for help on using the changeset viewer.