Ignore:
Timestamp:
03/22/18 10:43:20 (6 years ago)
Author:
yushan
Message:

branch_openmp merged with XIOS_DEV_CMIP6@1459

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/calendar.cpp

    r1342 r1460  
    99      CCalendar::CCalendar(void) 
    1010         : CObject() 
     11         , step(0) 
    1112         , initDate(*this) 
    1213         , timeOrigin(*this) 
     
    1617      CCalendar::CCalendar(const StdString& id) 
    1718               : CObject(id) 
     19               , step(0) 
    1820               , initDate(*this) 
    1921               , timeOrigin(*this) 
     
    2527                           int hr /*= 0*/, int min /*= 0*/, int sec /*= 0*/) 
    2628               : CObject(id) 
     29               , step(0) 
    2730               , initDate(*this) 
    2831               , timeOrigin(*this) 
     
    3437      CCalendar::CCalendar(const StdString& id, const CDate& startDate) 
    3538               : CObject(id) 
     39               , step(0) 
    3640               , initDate(startDate) 
    3741               , timeOrigin(startDate) 
     
    4448      CCalendar::CCalendar(const StdString& id, const CDate& startDate, const CDate& timeOrigin) 
    4549               : CObject(id) 
     50               , step(0) 
    4651               , initDate(startDate) 
    4752               , timeOrigin(timeOrigin) 
     
    115120      } 
    116121 
     122      int CCalendar::getStep(void) const 
     123      { 
     124        return step; 
     125      } 
     126 
    117127      const CDate& CCalendar::update(int step) 
    118128      { 
    119129        #pragma omp critical (_output) 
    120130        info(20) << "update step : " << step << " timestep " << this->timestep << std::endl; 
     131        this->step = step; 
    121132        return (this->currentDate = this->getInitDate() + step * this->timestep); 
    122133      } 
Note: See TracChangeset for help on using the changeset viewer.