Changeset 470 for XIOS/trunk/src/functor/maximum.cpp
- Timestamp:
- 01/30/14 15:55:42 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/functor/maximum.cpp
r369 r470 14 14 { /* Ne rien faire de plus */ } 15 15 16 CMaximum::CMaximum(CArray<double,1>& doutput, double missingValue) 17 : SuperClass(StdString("maximum"), doutput, missingValue) 18 { /* Ne rien faire de plus */ } 19 16 20 CMaximum::~CMaximum(void) 17 21 { /* Ne rien faire de plus */ } … … 26 30 double * it = _doutput.dataFirst(); 27 31 if (this->nbcall == 1) for (; it1 != end1; it1++, it++) *it = *it1; 28 else for (; it1 != end1; it1++, it++) *it = std::max(*it1, *it); 32 else 33 { 34 if (hasMissingValue) 35 { 36 for (; it1 != end1; it1++, it++) 37 if (*it1 != missingValue) 38 { 39 if ( *it != missingValue) *it = std::max(*it1, *it); 40 else *it=*it1 ; 41 } 42 } 43 else for (; it1 != end1; it1++, it++) *it = std::max(*it1, *it); 44 } 29 45 30 46
Note: See TracChangeset
for help on using the changeset viewer.