Changeset 1880


Ignore:
Timestamp:
05/15/20 09:54:11 (4 years ago)
Author:
ymipsl
Message:

XIOS coupling Branch

  • fix timestamp problem when receiving field from other coupling context

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/field.cpp

    r1878 r1880  
    659659    do 
    660660    { 
    661       const CDate nextDataDue = (wasDataAlreadyReceivedFromServer ? (lastDataReceivedFromServer + freq_op) : context->getCalendar()->getInitDate()) + freq_offset; 
    662       isDataLate = (nextDataDue <= currentDate); 
     661      if (wasDataAlreadyReceivedFromServer) isDataLate = lastDataReceivedFromServer + freq_offset < currentDate ; 
     662      else isDataLate = context->getCalendar()->getInitDate()+freq_offset <= currentDate ; 
    663663 
    664664      if (isDataLate) 
Note: See TracChangeset for help on using the changeset viewer.