Last change
on this file since 477 was
470,
checked in by ymipsl, 11 years ago
|
Enhancement : using new field attribute "detect_missing_value=true" adn defining a default value, the temporal operator (average, minimum, maximum, accumulate ...) detect missing value in the field and don't take them into account to perform the operation.
YM
|
File size:
1.1 KB
|
Line | |
---|
1 | #include "once.hpp" |
---|
2 | #include "array_new.hpp" |
---|
3 | |
---|
4 | namespace xios |
---|
5 | { |
---|
6 | namespace func |
---|
7 | { |
---|
8 | /// ////////////////////// Définitions ////////////////////// /// |
---|
9 | |
---|
10 | COnce::COnce(CArray<double,1>& doutput) |
---|
11 | : SuperClass(StdString("once"), doutput) |
---|
12 | { /* Ne rien faire de plus */ } |
---|
13 | |
---|
14 | COnce::COnce(CArray<double,1>& doutput, double missingValue) |
---|
15 | : SuperClass(StdString("once"), doutput, missingValue) |
---|
16 | { /* Ne rien faire de plus */ } |
---|
17 | |
---|
18 | COnce::~COnce(void) |
---|
19 | { /* Ne rien faire de plus */ } |
---|
20 | |
---|
21 | //--------------------------------------------------------------- |
---|
22 | |
---|
23 | void COnce::apply(const CArray<double,1>& _dinput, |
---|
24 | CArray<double,1>& _doutput) |
---|
25 | { |
---|
26 | /* const double * it1 = _dinput->data(), |
---|
27 | * end1 = _dinput->data() + _dinput->num_elements(); |
---|
28 | double * it = _doutput->data(); |
---|
29 | for (; it1 != end1; it1++, it++) *it = *it1;*/ |
---|
30 | _doutput=_dinput ; |
---|
31 | } |
---|
32 | |
---|
33 | //--------------------------------------------------------------- |
---|
34 | |
---|
35 | } // namespace func |
---|
36 | } // namespace xmlioserver |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.