Changeset 343 for XIOS/trunk/src/node/context.cpp
- Timestamp:
- 03/30/12 17:06:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/context.cpp
r335 r343 63 63 //---------------------------------------------------------------- 64 64 65 boost::shared_ptr< date::CCalendar> CContext::getCalendar(void) const65 boost::shared_ptr<CCalendar> CContext::getCalendar(void) const 66 66 { 67 67 return (this->calendar); … … 70 70 //---------------------------------------------------------------- 71 71 72 void CContext::setCalendar(boost::shared_ptr< date::CCalendar> newCalendar)72 void CContext::setCalendar(boost::shared_ptr<CCalendar> newCalendar) 73 73 { 74 74 this->calendar = newCalendar; … … 91 91 { \ 92 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())); \93 this->calendar = boost::shared_ptr<CCalendar> \ 94 (new C##MType##Calendar(start_date.getValue())); \ 95 else this->calendar = boost::shared_ptr<CCalendar> \ 96 (new C##MType##Calendar(start_date.getValue(),time_origin.getValue())); \ 97 97 if (!this->timestep.isEmpty()) \ 98 98 this->calendar->setTimeStep \ 99 ( date::CDuration::FromString(this->timestep.getValue())); \99 (CDuration::FromString(this->timestep.getValue())); \ 100 100 return; \ 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.