Ignore:
Timestamp:
04/04/18 12:20:26 (6 years ago)
Author:
oabramkina
Message:

Implementing a patch suggested by Rupert Nash in order to bring temporal_filter.cpp in compliance with c++98 norms.

For this, a constructor of CDuration has been added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/duration.cpp

    r1158 r1472  
    77{ 
    88      /// ////////////////////// Définitions ////////////////////// /// 
    9       const CDuration Year     = { 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, 
    10                       Month    = { 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, 
    11                       Week     = { 0.0, 0.0, 7.0, 0.0, 0.0, 0.0, 0.0 }, 
    12                       Day      = { 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0 }, 
    13                       Hour     = { 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0 }, 
    14                       Minute   = { 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0 }, 
    15                       Second   = { 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0 }, 
    16                       TimeStep = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0 }, 
    17                       NoneDu   = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; 
     9 
     10      const CDuration Year     ( 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ); 
     11      const CDuration Month    ( 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0 ); 
     12      const CDuration Week     ( 0.0, 0.0, 7.0, 0.0, 0.0, 0.0, 0.0 ); 
     13      const CDuration Day      ( 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0 ); 
     14      const CDuration Hour     ( 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0 ); 
     15      const CDuration Minute   ( 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0 ); 
     16      const CDuration Second   ( 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0 ); 
     17      const CDuration TimeStep ( 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0 ); 
     18      const CDuration NoneDu   ( 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ); 
     19 
     20      ///--------------------------------------------------------------- 
     21 
     22      CDuration::CDuration(double y, double m, double d, double h, double min, double s, double ts) : 
     23      year(y), month(m), day(d), hour(h), minute(min), second(s), timestep(ts) 
     24      { 
     25      } 
    1826 
    1927      ///--------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.