Ignore:
Timestamp:
06/23/17 15:01:41 (7 years ago)
Author:
rlacroix
Message:

Add a new field attribut "check_if_active".

If this attribut is set to "true", xios_send_field will check if the field is active at current timestep and will be a no-op if it is not.

File:
1 edited

Legend:

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

    r1135 r1181  
    825825       else // The data might be passed from the model 
    826826       { 
     827          if (check_if_active.isEmpty()) check_if_active = false; 
    827828          bool ignoreMissingValue = (!detect_missing_value.isEmpty() && !default_value.isEmpty() && detect_missing_value == true); 
    828829          double defaultValue  = ignoreMissingValue ? default_value : (!default_value.isEmpty() ? default_value : 0.0); 
     
    916917         if (!clientSourceFilter) 
    917918         { 
     919           if (check_if_active.isEmpty()) check_if_active = false; 
    918920           bool ignoreMissingValue = (!detect_missing_value.isEmpty() && !default_value.isEmpty() && detect_missing_value == true); 
    919921           double defaultValue  = ignoreMissingValue ? default_value : (!default_value.isEmpty() ? default_value : 0.0);  
Note: See TracChangeset for help on using the changeset viewer.