Ignore:
Timestamp:
01/05/17 14:21:17 (7 years ago)
Author:
oabramkina
Message:

Check if output_frequency >= timestep added.
Files with output_frequency < timestep are considered to be disabled.

File:
1 edited

Legend:

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

    r612 r1015  
    2424        hour = duration.hour; minute = duration.minute; second = duration.second; timestep = duration.timestep; 
    2525        return *this; 
     26      } 
     27 
     28      bool operator<(CDuration a, CDuration b) 
     29      { 
     30        double aSeconds = a.second + 60.*(a.minute + 60.*(a.hour + 24.*(a.day + a.year*365.25) ) ); 
     31        double bSeconds = b.second + 60.*(b.minute + 60.*(b.hour + 24.*(b.day + b.year*365.25) ) ); 
     32        return (aSeconds < bSeconds); 
    2633      } 
    2734 
Note: See TracChangeset for help on using the changeset viewer.