Changeset 1387 for XIOS/trunk


Ignore:
Timestamp:
12/20/17 14:20:08 (6 years ago)
Author:
oabramkina
Message:

Fixing a bug in case of output_freq defined in months to avoid adding a month to the last day of a month.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field.cpp

    r1358 r1387  
    218218    CContext* context = CContext::getCurrent(); 
    219219    const CDate& currDate = context->getCalendar()->getCurrentDate(); 
    220     const CDate opeDate      = last_operation_srv +freq_op + freq_operation_srv - freq_op; 
     220    const CDate opeDate      = (last_operation_srv + context->getCalendar()->getTimeStep()) +freq_op + freq_operation_srv - freq_op - context->getCalendar()->getTimeStep(); 
    221221    const CDate writeDate    = last_Write_srv     + freq_write_srv; 
    222222 
Note: See TracChangeset for help on using the changeset viewer.