Changeset 1357 for XIOS/dev/XIOS_DEV_CMIP6/src/calendar.cpp
- Timestamp:
- 12/06/17 08:34:31 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/calendar.cpp
r561 r1357 9 9 CCalendar::CCalendar(void) 10 10 : CObject() 11 , step(0) 11 12 , initDate(*this) 12 13 , timeOrigin(*this) … … 16 17 CCalendar::CCalendar(const StdString& id) 17 18 : CObject(id) 19 , step(0) 18 20 , initDate(*this) 19 21 , timeOrigin(*this) … … 25 27 int hr /*= 0*/, int min /*= 0*/, int sec /*= 0*/) 26 28 : CObject(id) 29 , step(0) 27 30 , initDate(*this) 28 31 , timeOrigin(*this) … … 34 37 CCalendar::CCalendar(const StdString& id, const CDate& startDate) 35 38 : CObject(id) 39 , step(0) 36 40 , initDate(startDate) 37 41 , timeOrigin(startDate) … … 44 48 CCalendar::CCalendar(const StdString& id, const CDate& startDate, const CDate& timeOrigin) 45 49 : CObject(id) 50 , step(0) 46 51 , initDate(startDate) 47 52 , timeOrigin(timeOrigin) … … 115 120 } 116 121 122 int CCalendar::getStep(void) const 123 { 124 return step; 125 } 126 117 127 const CDate& CCalendar::update(int step) 118 128 { 119 129 info(20) << "update step : " << step << " timestep " << this->timestep << std::endl; 130 this->step = step; 120 131 return (this->currentDate = this->getInitDate() + step * this->timestep); 121 132 }
Note: See TracChangeset
for help on using the changeset viewer.