Ignore:
Timestamp:
10/26/17 10:23:17 (7 years ago)
Author:
rlacroix
Message:

Fix: Handle end-of-file correctly for files in read mode.

Previously desynchronizations between clients could occur, leading to invalid events being received by the server(s).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/file.cpp

    r1316 r1318  
    867867 
    868868   /*! 
    869      Prefetching the data for enabled fields read from file whose data is out-of-date. 
    870    */ 
    871    void CFile::prefetchEnabledReadModeFieldsIfNeeded(void) 
     869     Do all post timestep operations for enabled fields in read mode: 
     870      - Prefetch the data read from file when needed 
     871      - Check that the data excepted from server has been received 
     872   */ 
     873   void CFile::doPostTimestepOperationsForEnabledReadModeFields(void) 
    872874   { 
    873875     if (mode.isEmpty() || mode.getValue() != mode_attr::read) 
     
    876878     int size = this->enabledFields.size(); 
    877879     for (int i = 0; i < size; ++i) 
     880     { 
     881       this->enabledFields[i]->checkForLateDataFromServer(); 
    878882       this->enabledFields[i]->sendReadDataRequestIfNeeded(); 
     883     } 
    879884   } 
    880885 
Note: See TracChangeset for help on using the changeset viewer.