Changeset 767


Ignore:
Timestamp:
10/30/15 16:33:47 (5 years ago)
Author:
rlacroix
Message:

Fix: Make xios_field_is_active a lot more reliable.

The old system only worked correctly for fields defined in the field_definition group and referenced in files using a field_ref.

File:
1 edited

Legend:

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

    r758 r767  
    3030   CField::CField(void) 
    3131      : CObjectTemplate<CField>(), CFieldAttributes() 
    32       , refObject(), baseRefObject() 
     32      , baseRefObject() 
    3333      , grid(), file() 
    3434      , written(false) 
     
    4242   CField::CField(const StdString& id) 
    4343      : CObjectTemplate<CField>(id), CFieldAttributes() 
    44       , refObject(), baseRefObject() 
     44      , baseRefObject() 
    4545      , grid(), file() 
    4646      , written(false) 
     
    458458   bool CField::isActive(void) const 
    459459   { 
    460       return !this->refObject.empty(); 
     460      return (instantDataFilter != NULL); 
    461461   } 
    462462 
Note: See TracChangeset for help on using the changeset viewer.