Changeset 535
- Timestamp:
- 12/11/14 11:45:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/node/context.cpp
r501 r535 73 73 { 74 74 if (this->calendar.get() != NULL) return; 75 if (calendar_type.isEmpty() || start_date.isEmpty())75 if (calendar_type.isEmpty()) 76 76 ERROR(" CContext::solveCalendar(void)", 77 77 << "[ context id = " << this->getId() << " ] " 78 << "Impossible to define a calendar (an attribute is missing)."); 78 << "Impossible to define a calendar: the calendar type is missing."); 79 if (start_date.isEmpty()) 80 ERROR(" CContext::solveCalendar(void)", 81 << "[ context id = " << this->getId() << " ] " 82 << "Impossible to define a calendar: the start date is missing."); 83 if (timestep.isEmpty()) 84 ERROR(" CContext::solveCalendar(void)", 85 << "[ context id = " << this->getId() << " ] " 86 << "Impossible to define a calendar: the timestep is missing."); 79 87 80 88 #define DECLARE_CALENDAR(MType , mtype) \ … … 86 94 else this->calendar = boost::shared_ptr<CCalendar> \ 87 95 (new C##MType##Calendar(start_date.getValue(),time_origin.getValue())); \ 88 if (!this->timestep.isEmpty()) \ 89 this->calendar->setTimeStep \ 96 this->calendar->setTimeStep \ 90 97 (CDuration::FromString(this->timestep.getValue())); \ 91 98 return; \
Note: See TracChangeset
for help on using the changeset viewer.