Changeset 334 for XIOS/trunk/src/node
- Timestamp:
- 03/27/12 10:49:42 (12 years ago)
- Location:
- XIOS/trunk/src/node
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/context.cpp
r321 r334 87 87 << "Impossible de définir un calendrier (un attribut est manquant)."); 88 88 89 #define DECLARE_CALENDAR(MType , mtype) \ 90 if (calendar_type.getValue().compare(#mtype) == 0) \ 91 { \ 92 this->calendar = boost::shared_ptr<date::CCalendar> \ 93 (new date::C##MType##Calendar(start_date.getValue())); \ 94 if (!this->timestep.isEmpty()) \ 95 this->calendar->setTimeStep \ 96 (date::CDuration::FromString(this->timestep.getValue())); \ 97 return; \ 89 #define DECLARE_CALENDAR(MType , mtype) \ 90 if (calendar_type.getValue().compare(#mtype) == 0) \ 91 { \ 92 if (time_origin.isEmpty()) \ 93 this->calendar = boost::shared_ptr<date::CCalendar> \ 94 (new date::C##MType##Calendar(start_date.getValue())); \ 95 else this->calendar = boost::shared_ptr<date::CCalendar> \ 96 (new date::C##MType##Calendar(start_date.getValue(),time_origin.getValue())); \ 97 if (!this->timestep.isEmpty()) \ 98 this->calendar->setTimeStep \ 99 (date::CDuration::FromString(this->timestep.getValue())); \ 100 return; \ 98 101 } 99 102 #include "calendar_type.conf" … … 535 538 void CContext::updateCalendar(int step) 536 539 { 540 info(50)<<"updateCalendar : before : "<<calendar->getCurrentDate()<<endl ; 537 541 calendar->update(step) ; 542 info(50)<<"updateCalendar : after : "<<calendar->getCurrentDate()<<endl ; 538 543 } 539 544 -
XIOS/trunk/src/node/field.cpp
r321 r334 178 178 *last_Write_srv = writeDate; 179 179 writeField() ; 180 *lastlast_Write_srv=*last_Write_srv; 180 181 } 181 182 } … … 384 385 this->freq_write_srv = 385 386 CDuration::FromString(this->file->output_freq.getValue()); 387 this->lastlast_Write_srv = boost::shared_ptr<xmlioserver::date::CDate> 388 (new date::CDate(context->getCalendar()->getInitDate())); 386 389 this->last_Write_srv = boost::shared_ptr<xmlioserver::date::CDate> 387 390 (new date::CDate(context->getCalendar()->getInitDate())); -
XIOS/trunk/src/node/field.hpp
r327 r334 141 141 StdSize nstep; 142 142 boost::shared_ptr<date::CDate> last_Write, last_operation; 143 boost::shared_ptr<date::CDate> last _Write_srv, last_operation_srv;143 boost::shared_ptr<date::CDate> lastlast_Write_srv,last_Write_srv, last_operation_srv; 144 144 145 145 boost::shared_ptr<func::CFunctor> foperation;
Note: See TracChangeset
for help on using the changeset viewer.