Ignore:
Timestamp:
05/26/15 16:13:47 (9 years ago)
Author:
rlacroix
Message:

Add the infrastructure to request fields from the server.

This will be used to read input files so add a new file attribute mode to define whether data is written or read from a file.

Currently the data is not actually read and random data is transfered for those fields in read mode.

File:
1 edited

Legend:

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

    r595 r598  
    517517   } 
    518518 
     519   /*! 
     520     Prefetching the data for enabled fields read from file. 
     521   */ 
     522   void CFile::prefetchEnabledReadModeFields(void) 
     523   { 
     524     if (mode.isEmpty() || mode.getValue() != mode_attr::read) 
     525       return; 
     526 
     527     int size = this->enabledFields.size(); 
     528     for (int i = 0; i < size; ++i) 
     529       this->enabledFields[i]->sendReadDataRequest(); 
     530   } 
     531 
     532   /*! 
     533     Prefetching the data for enabled fields read from file whose data is out-of-date. 
     534   */ 
     535   void CFile::prefetchEnabledReadModeFieldsIfNeeded(void) 
     536   { 
     537     if (mode.isEmpty() || mode.getValue() != mode_attr::read) 
     538       return; 
     539 
     540     int size = this->enabledFields.size(); 
     541     for (int i = 0; i < size; ++i) 
     542       this->enabledFields[i]->sendReadDataRequestIfNeeded(); 
     543   } 
     544 
    519545   void CFile::solveFieldRefInheritance(bool apply) 
    520546   { 
Note: See TracChangeset for help on using the changeset viewer.