Changeset 369 for XIOS/trunk/src/node/field_impl.hpp
- Timestamp:
- 10/16/12 13:04:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/field_impl.hpp
r352 r369 8 8 #include "grid.hpp" 9 9 #include "timer.hpp" 10 #include "array.hpp" 10 #include "array_new.hpp" 11 11 12 12 13 namespace xios { 13 14 14 template < StdSizeN>15 void CField::setData(const ARRAY(double, N)_data)15 template <int N> 16 void CField::setData(const CArray<double, N>& _data) 16 17 { 17 18 const std::vector<CField*>& refField=getAllReference(); … … 21 22 } 22 23 23 template < StdSizeN>24 bool CField::updateData(const ARRAY(double, N)_data)24 template <int N> 25 bool CField::updateData(const CArray<double, N>& _data) 25 26 { 26 27 CContext* context=CContext::getCurrent(); … … 35 36 if (opeDate <= currDate) 36 37 { 37 if (this->data ->num_elements() != this->grid->storeIndex_client->num_elements())38 if (this->data.numElements() != this->grid->storeIndex_client.numElements()) 38 39 { 39 this->data ->resize(boost::extents[this->grid->storeIndex_client ->num_elements()]);40 this->data.resize(this->grid->storeIndex_client.numElements()); 40 41 } 41 42 42 ARRAY_CREATE(input, double, 1, [this->data->num_elements()]);43 CArray<double,1> input(data.numElements()) ; 43 44 this->grid->inputField(_data, input); 44 45 (*this->foperation)(input);
Note: See TracChangeset
for help on using the changeset viewer.