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/field_impl.hpp

    r593 r598  
    184184    if (!read_access.isEmpty() && read_access.getValue() && hasInstantData) 
    185185    { 
     186      CContext* context = CContext::getCurrent(); 
     187      const CDate& currentDate = context->getCalendar()->getCurrentDate(); 
     188 
     189      while (isReadDataRequestPending) 
     190        context->checkBuffersAndListen(); 
     191 
    186192      grid->outputField(instantData, _data); 
    187193    } 
Note: See TracChangeset for help on using the changeset viewer.