Ignore:
Timestamp:
10/23/15 10:49:19 (9 years ago)
Author:
rlacroix
Message:

Support freq_offset for fields in files in read mode.

In theory the first record of a file being read is available at timestep 0, this allows to delay the availability of the data to a later timestep.

Use a temporary solution for now until this can be properly integrated in a temporal filter.

File:
1 edited

Legend:

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

    r746 r756  
    611611       // Check if the data is to be read from a file 
    612612       else if (file && !file->mode.isEmpty() && file->mode == CFile::mode_attr::read) 
    613          instantDataFilter = serverSourceFilter = boost::shared_ptr<CSourceFilter>(new CSourceFilter(grid)); 
     613         instantDataFilter = serverSourceFilter = boost::shared_ptr<CSourceFilter>(new CSourceFilter(grid, 
     614                                                                                                     freq_offset.isEmpty() ? NoneDu : freq_offset)); 
    614615       else // The data might be passed from the model 
    615616         instantDataFilter = clientSourceFilter = boost::shared_ptr<CSourceFilter>(new CSourceFilter(grid)); 
Note: See TracChangeset for help on using the changeset viewer.