Ignore:
Timestamp:
05/05/17 08:58:33 (7 years ago)
Author:
rlacroix
Message:

Add the ability to check if an output field is active at the current timestep.

The "xios_field_is_active" function can now take an optional logical argument that can be used to enable this new behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/temporal_filter.cpp

    r1018 r1119  
    7575    return packet; 
    7676  } 
     77 
     78  bool CTemporalFilter::isDataExpected(const CDate& date) const 
     79  { 
     80    return isOnceOperation ? isFirstOperation : (date >= nextSamplingDate || date + samplingFreq > nextOperationDate); 
     81  } 
    7782} // namespace xios 
Note: See TracChangeset for help on using the changeset viewer.