Changeset 1545 for XIOS/dev/branch_openmp/src/interface/c/icduration.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/icduration.cpp
r1482 r1545 8 8 { 9 9 xios::CDuration dur( dur_c.year, dur_c.month, dur_c.day, dur_c.hour, dur_c.minute, dur_c.second, dur_c.timestep ); 10 10 11 if (!string_copy(dur.toString(), str, str_size)) 11 12 ERROR("void cxios_duration_convert_to_string(cxios_duration dur_c, char* str, int str_size)", << "Input string is too short"); … … 27 28 xios::CDuration dur1( dur1_c.year, dur1_c.month, dur1_c.day, dur1_c.hour, dur1_c.minute, dur1_c.second, dur1_c.timestep ); 28 29 xios::CDuration dur2( dur2_c.year, dur2_c.month, dur2_c.day, dur2_c.hour, dur2_c.minute, dur2_c.second, dur2_c.timestep ); 30 29 31 xios::CDuration res = dur1 + dur2; 30 32 return { res.year, res.month, res.day, res.hour, res.minute, res.second, res.timestep }; … … 35 37 xios::CDuration dur1( dur1_c.year, dur1_c.month, dur1_c.day, dur1_c.hour, dur1_c.minute, dur1_c.second, dur1_c.timestep ); 36 38 xios::CDuration dur2( dur2_c.year, dur2_c.month, dur2_c.day, dur2_c.hour, dur2_c.minute, dur2_c.second, dur2_c.timestep ); 39 37 40 xios::CDuration res = dur1 - dur2; 38 41 return { res.year, res.month, res.day, res.hour, res.minute, res.second, res.timestep };
Note: See TracChangeset
for help on using the changeset viewer.