Changeset 561 for XIOS/trunk/src/calendar.cpp
- Timestamp:
- 02/18/15 10:13:41 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/calendar.cpp
r550 r561 115 115 } 116 116 117 CDate& CCalendar::update(int step)117 const CDate& CCalendar::update(int step) 118 118 { 119 119 info(20) << "update step : " << step << " timestep " << this->timestep << std::endl; 120 return (this-> getCurrentDate()= this->getInitDate() + step * this->timestep);120 return (this->currentDate = this->getInitDate() + step * this->timestep); 121 121 } 122 122 … … 144 144 const CDate& CCalendar::getInitDate(void) const { return this->initDate; } 145 145 const CDate& CCalendar::getTimeOrigin(void) const { return this->timeOrigin; } 146 CDate& CCalendar::getCurrentDate(void){ return this->currentDate; }146 const CDate& CCalendar::getCurrentDate(void) const { return this->currentDate; } 147 147 148 148 //-----------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.