Ignore:
Timestamp:
09/18/13 18:25:47 (11 years ago)
Author:
ymipsl
Message:

Bugs fix : due to the introduction of the 'ts' unit
This correction avoid crash when writing and closing an HDF5 file.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/duration.cpp

    r436 r448  
    4545      { 
    4646         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; 
    4848         double v = 1.0; 
    4949         char   c = '/'; 
     
    109109      { 
    110110        CDuration timeStep=c.getTimeStep() ; 
    111         second +=timeStep.second ;  
    112         minute +=timeStep.minute ;  
    113         hour +=timeStep.hour ;  
    114         day +=timeStep.day ;  
    115         month +=timeStep.month ;  
    116         year +=timeStep.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 ;  
    117117        timestep = 0 ; 
    118         return (*this); 
     118 
    119119      } 
    120120                
Note: See TracChangeset for help on using the changeset viewer.