Changeset 545 for XIOS/trunk/src/node
- Timestamp:
- 12/17/14 11:14:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/context.cpp
r541 r545 81 81 void CContext::solveCalendar(void) 82 82 { 83 if (this->calendar.get() != NULL) return;84 83 if (calendar_type.isEmpty()) 85 84 ERROR(" CContext::solveCalendar(void)", … … 94 93 << "[ context id = " << this->getId() << " ] " 95 94 << "Impossible to define a calendar: the timestep is missing."); 95 96 if (this->calendar) 97 { 98 if (this->calendar->getId() != calendar_type.getStringValue() 99 || this->calendar->getInitDate() != start_date.getValue() 100 || (time_origin.isEmpty() && this->calendar->getTimeOrigin() != start_date.getValue()) 101 || (!time_origin.isEmpty() && this->calendar->getTimeOrigin() != time_origin.getValue()) 102 || this->calendar->getTimeStep() != timestep.getValue()) 103 ERROR(" CContext::solveCalendar(void)", 104 << "[ context id = " << this->getId() << " ] " 105 << "Impossible to define a calendar again with new parameters."); 106 return; 107 } 96 108 97 109 #define DECLARE_CALENDAR(MType, eType) \
Note: See TracChangeset
for help on using the changeset viewer.