Changeset 1037 for XIOS/dev/branch_yushan/src/functor/accumulate.cpp
- Timestamp:
- 01/25/17 16:25:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/functor/accumulate.cpp
r1018 r1037 1 1 #include "accumulate.hpp" 2 2 #include "array_new.hpp" 3 #include "utils.hpp"4 3 5 4 namespace xios … … 34 33 double* out=_doutput.dataFirst(); 35 34 for (i=0; i<n; ++i,++in,++out) 36 if ( !NumTraits<double>::isnan(*in))35 if (*in!=missingValue) 37 36 { 38 if( !NumTraits<double>::isnan(*out)) *out += *in;37 if(*out!=missingValue) *out += *in; 39 38 else *out=*in ; 40 39 }
Note: See TracChangeset
for help on using the changeset viewer.