Ignore:
Timestamp:
01/25/17 16:25:17 (7 years ago)
Author:
yushan
Message:

initialize the branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/functor/average.cpp

    r1018 r1037  
    11#include "average.hpp" 
    22#include "array_new.hpp" 
    3 #include "utils.hpp" 
    43 
    54namespace xios 
     
    4342            int* nc=nbcalls.dataFirst() ; 
    4443            for (i=0; i<n; ++i,++nc,++in)  
    45               if (!NumTraits<double>::isnan(*in)) (*nc) ++; 
     44              if (*in!=missingValue) (*nc) ++; 
    4645          } 
    4746        } 
     
    5554            int* nc=nbcalls.dataFirst() ; 
    5655            for (i=0; i<n; ++i,++in,++out,++nc)  
    57               if (!NumTraits<double>::isnan(*in))  
     56              if (*in!=missingValue)  
    5857              { 
    5958                if (*nc != 0) (*out)  += *in; 
Note: See TracChangeset for help on using the changeset viewer.