Changeset 347 for XIOS/trunk/src/field_impl.hpp
- Timestamp:
- 05/21/12 17:57:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/field_impl.hpp
r346 r347 7 7 #include "context.hpp" 8 8 #include "grid.hpp" 9 #include "timer.hpp" 9 10 10 11 … … 14 15 void CField::setData(const ARRAY(double, N) _data) 15 16 { 16 const std::vector< boost::shared_ptr<CField> >& refField=getAllReference();17 std::vector< boost::shared_ptr<CField>>::const_iterator it = refField.begin(), end = refField.end();17 const std::vector<CField*>& refField=getAllReference(); 18 std::vector<CField*>::const_iterator it = refField.begin(), end = refField.end(); 18 19 19 20 for (; it != end; it++) (*it)->updateData(_data) ; … … 23 24 bool CField::updateData(const ARRAY(double, N) _data) 24 25 { 25 shared_ptr<CContext>context=CContext::getCurrent();26 CContext* context=CContext::getCurrent(); 26 27 const CDate & currDate = context->getCalendar()->getCurrentDate(); 27 28 const CDate opeDate = *last_operation + freq_operation; … … 52 53 *last_Write = writeDate; 53 54 info(50) << "(*last_Write = currDate) : " << *last_Write << " = " << currDate << std::endl; 55 CTimer::get("XIOS Send Data").resume() ; 54 56 sendUpdateData() ; 57 CTimer::get("XIOS Send Data").suspend() ; 55 58 return (true); 56 59 }
Note: See TracChangeset
for help on using the changeset viewer.