Changeset 369 for XIOS/trunk/src/functor.cpp
- Timestamp:
- 10/16/12 13:04:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/functor.cpp
r335 r369 1 1 #include "functor.hpp" 2 #include "array_new.hpp" 2 3 3 4 namespace xios … … 7 8 /// ////////////////////// Définitions ////////////////////// /// 8 9 9 CFunctor::CFunctor(const StdString & id, ARRAY(double, 1)doutput)10 CFunctor::CFunctor(const StdString & id, CArray<double, 1>& doutput) 10 11 : SuperClass(id), doutput(doutput), nbcall(0) 11 12 { /* Ne rien faire de plus */ } … … 16 17 //--------------------------------------------------------------- 17 18 18 ARRAY(double, 1)CFunctor::getDataOutput(void) const19 CArray<double,1> CFunctor::getDataOutput(void) const 19 20 { 20 21 return (this->doutput); … … 37 38 //--------------------------------------------------------------- 38 39 39 ARRAY(double, 1) CFunctor::operator ()(const ARRAY(double, 1)dinput)40 CArray<double,1> CFunctor::operator ()(const CArray<double,1>& dinput) 40 41 { 41 42 this->nbcall++; 42 if (dinput ->size() != this->doutput->size())43 if (dinput.numElements() != this->doutput.numElements()) 43 44 ERROR("CFunctor::operator ()(dinput)", 44 << "[ input size = " << dinput ->size()45 << ", output size = " << this->doutput ->size() << " ]"45 << "[ input size = " << dinput.numElements() 46 << ", output size = " << this->doutput.numElements() << " ]" 46 47 << " size of input array != size of output array !"); 47 48 this->apply(dinput, this->doutput);
Note: See TracChangeset
for help on using the changeset viewer.