Changeset 1545 for XIOS/dev/branch_openmp/src/interface/c/icdate.cpp
- Timestamp:
- 06/18/18 20:32:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/interface/c/icdate.cpp
r1482 r1545 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <boost/shared_ptr.hpp>7 6 8 7 #include "xios.hpp" … … 27 26 if (!context) 28 27 ERROR(idFunc, << "Impossible to do calendar operations: no current context available."); 29 const boost::shared_ptr<xios::CCalendar> cal = context->getCalendar();28 const std::shared_ptr<xios::CCalendar> cal = context->getCalendar(); 30 29 if (!cal) 31 30 ERROR(idFunc, << "Impossible to do calendar operations: no calendar was defined."); … … 82 81 date_c.hour, date_c.minute, date_c.second); 83 82 xios::CDuration dur( dur_c.year, dur_c.month, dur_c.day, dur_c.hour, dur_c.minute, dur_c.second, dur_c.timestep ); 83 84 84 xios::CDate res = date - dur; 85 85 return { res.getYear(), res.getMonth(), res.getDay(), res.getHour(), res.getMinute(), res.getSecond() };
Note: See TracChangeset
for help on using the changeset viewer.