Changeset 534
- Timestamp:
- 12/11/14 11:24:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/context.cpp
r532 r534 82 82 { 83 83 if (this->calendar.get() != NULL) return; 84 if (calendar_type.isEmpty() || start_date.isEmpty())84 if (calendar_type.isEmpty()) 85 85 ERROR(" CContext::solveCalendar(void)", 86 86 << "[ context id = " << this->getId() << " ] " 87 << "Impossible to define a calendar (an attribute is missing)."); 87 << "Impossible to define a calendar: the calendar type is missing."); 88 if (start_date.isEmpty()) 89 ERROR(" CContext::solveCalendar(void)", 90 << "[ context id = " << this->getId() << " ] " 91 << "Impossible to define a calendar: the start date is missing."); 92 if (timestep.isEmpty()) 93 ERROR(" CContext::solveCalendar(void)", 94 << "[ context id = " << this->getId() << " ] " 95 << "Impossible to define a calendar: the timestep is missing."); 88 96 89 97 #define DECLARE_CALENDAR(MType, eType) \ … … 103 111 "time_origin: Bad format or date not conform to the calendar"); \ 104 112 \ 105 if (!this->timestep.isEmpty()) \ 106 this->calendar->setTimeStep \ 113 this->calendar->setTimeStep \ 107 114 (CDuration::FromString(this->timestep.getValue())); \ 108 115 return; \
Note: See TracChangeset
for help on using the changeset viewer.