Changeset 537 for XIOS/trunk/src/interface/c/icdate.cpp
- Timestamp:
- 12/11/14 14:32:37 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icdate.cpp
r509 r537 23 23 // /////////////////////////////// Définitions ////////////////////////////// // 24 24 25 void cxios_set_timestep(double ts_year, double ts_month, double ts_day,26 double ts_hour, double ts_minute, double ts_second)27 {28 try29 {30 CTimer::get("XIOS").resume() ;31 CDuration dur = {ts_year, ts_month, ts_day, ts_hour, ts_minute, ts_second, 0};32 xios::CContext* context = CContext::getCurrent() ;33 context->timestep.setValue(dur.toString());34 CTimer::get("XIOS").suspend() ;35 }36 catch (xios::CException & exc)37 {38 std::cerr << exc.getMessage() << std::endl;39 exit (EXIT_FAILURE);40 }41 }42 43 25 void cxios_update_calendar(int step) 44 26 {
Note: See TracChangeset
for help on using the changeset viewer.