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/trunk/src/node/file.cpp

    r1286 r1318  
    783783 
    784784   /*! 
    785      Prefetching the data for enabled fields read from file whose data is out-of-date. 
    786    */ 
    787    void CFile::prefetchEnabledReadModeFieldsIfNeeded(void) 
     785     Do all post timestep operations for enabled fields in read mode: 
     786      - Prefetch the data read from file when needed 
     787      - Check that the data excepted from server has been received 
     788   */ 
     789   void CFile::doPostTimestepOperationsForEnabledReadModeFields(void) 
    788790   { 
    789791     if (mode.isEmpty() || mode.getValue() != mode_attr::read) 
     
    792794     int size = this->enabledFields.size(); 
    793795     for (int i = 0; i < size; ++i) 
     796     { 
     797       this->enabledFields[i]->checkForLateDataFromServer(); 
    794798       this->enabledFields[i]->sendReadDataRequestIfNeeded(); 
     799     } 
    795800   } 
    796801 
Note: See TracChangeset for help on using the changeset viewer.