Changeset 1037 for XIOS/dev/branch_yushan/src/functor/average.cpp
- Timestamp:
- 01/25/17 16:25:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/functor/average.cpp
r1018 r1037 1 1 #include "average.hpp" 2 2 #include "array_new.hpp" 3 #include "utils.hpp"4 3 5 4 namespace xios … … 43 42 int* nc=nbcalls.dataFirst() ; 44 43 for (i=0; i<n; ++i,++nc,++in) 45 if ( !NumTraits<double>::isnan(*in)) (*nc) ++;44 if (*in!=missingValue) (*nc) ++; 46 45 } 47 46 } … … 55 54 int* nc=nbcalls.dataFirst() ; 56 55 for (i=0; i<n; ++i,++in,++out,++nc) 57 if ( !NumTraits<double>::isnan(*in))56 if (*in!=missingValue) 58 57 { 59 58 if (*nc != 0) (*out) += *in;
Note: See TracChangeset
for help on using the changeset viewer.