Changeset 854


Ignore:
Timestamp:
05/23/16 16:15:40 (5 years ago)
Author:
ymipsl
Message:

Correct bug in output using freq_op != 1ts and Gregorian calendar.

YM

Location:
XIOS/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/temporal_filter.cpp

    r643 r854  
    6767 
    6868        isFirstOperation = false; 
    69         nextOperationDate = nextOperationDate + opFreq; 
     69        nextOperationDate = nextOperationDate + samplingFreq + opFreq - samplingFreq; 
    7070      } 
    7171    } 
  • XIOS/trunk/src/node/field.cpp

    r850 r854  
    212212    CContext* context = CContext::getCurrent(); 
    213213    const CDate& currDate = context->getCalendar()->getCurrentDate(); 
    214     const CDate opeDate      = last_operation_srv + freq_operation_srv; 
     214    const CDate opeDate      = last_operation_srv +freq_op + freq_operation_srv - freq_op; 
    215215    const CDate writeDate    = last_Write_srv     + freq_write_srv; 
    216216 
Note: See TracChangeset for help on using the changeset viewer.