Changeset 1460 for XIOS/dev/branch_openmp/src/calendar.cpp
- Timestamp:
- 03/22/18 10:43:20 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/calendar.cpp
r1342 r1460 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 #pragma omp critical (_output) 120 130 info(20) << "update step : " << step << " timestep " << this->timestep << std::endl; 131 this->step = step; 121 132 return (this->currentDate = this->getInitDate() + step * this->timestep); 122 133 }
Note: See TracChangeset
for help on using the changeset viewer.