Changeset 448 for XIOS/trunk/src/duration.cpp
- Timestamp:
- 09/18/13 18:25:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/duration.cpp
r436 r448 45 45 { 46 46 duration.year = duration.month = duration.day = 47 duration.hour = duration.minute = duration.second = 0.0;47 duration.hour = duration.minute = duration.second = duration.timestep=0.0; 48 48 double v = 1.0; 49 49 char c = '/'; … … 109 109 { 110 110 CDuration timeStep=c.getTimeStep() ; 111 second +=time Step.second ;112 minute +=time Step.minute ;113 hour +=time Step.hour ;114 day +=time Step.day ;115 month +=time Step.month ;116 year +=time Step.year ;111 second +=timestep*timeStep.second ; 112 minute +=timestep*timeStep.minute ; 113 hour +=timestep*timeStep.hour ; 114 day +=timestep*timeStep.day ; 115 month +=timestep*timeStep.month ; 116 year +=timestep*timeStep.year ; 117 117 timestep = 0 ; 118 return (*this); 118 119 119 } 120 120
Note: See TracChangeset
for help on using the changeset viewer.