Changeset 369 for XIOS/trunk/src/functor/instant.cpp
- Timestamp:
- 10/16/12 13:04:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/functor/instant.cpp
r335 r369 1 1 #include "instant.hpp" 2 #include "array_new.hpp" 2 3 3 4 namespace xios … … 7 8 /// ////////////////////// Définitions ////////////////////// /// 8 9 9 CInstant::CInstant( DoubleArraydoutput)10 CInstant::CInstant(CArray<double,1>& doutput) 10 11 : SuperClass(StdString("instant"), doutput) 11 12 { /* Ne rien faire de plus */ } … … 16 17 //--------------------------------------------------------------- 17 18 18 void CInstant::apply(const DoubleArray_dinput,19 DoubleArray_doutput)19 void CInstant::apply(const CArray<double,1>& _dinput, 20 CArray<double,1>& _doutput) 20 21 { 21 const double * it1 = _dinput->data(),22 /* const double * it1 = _dinput->data(), 22 23 * end1 = _dinput->data() + _dinput->num_elements(); 23 24 double * it = _doutput->data(); 24 for (; it1 != end1; it1++, it++) *it = *it1; 25 for (; it1 != end1; it1++, it++) *it = *it1;*/ 26 _doutput=_dinput ; 25 27 } 26 28
Note: See TracChangeset
for help on using the changeset viewer.