Ignore:
Timestamp:
10/26/17 10:23:17 (5 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/context.cpp

    r1316 r1318  
    783783   } 
    784784 
    785    void CContext::checkPrefetchingOfEnabledReadModeFiles() 
     785   void CContext::doPostTimestepOperationsForEnabledReadModeFiles() 
    786786   { 
    787787     int size = enabledReadModeFiles.size(); 
    788788     for (int i = 0; i < size; ++i) 
    789789     { 
    790         enabledReadModeFiles[i]->prefetchEnabledReadModeFieldsIfNeeded(); 
     790        enabledReadModeFiles[i]->doPostTimestepOperationsForEnabledReadModeFields(); 
    791791     } 
    792792   } 
     
    17091709      if (hasClient && !hasServer) // For now we only use server level 1 to read data 
    17101710      { 
    1711         checkPrefetchingOfEnabledReadModeFiles(); 
     1711        doPostTimestepOperationsForEnabledReadModeFiles(); 
    17121712        garbageCollector.invalidate(calendar->getCurrentDate()); 
    17131713      } 
Note: See TracChangeset for help on using the changeset viewer.