Ignore:
Timestamp:
07/22/21 14:05:58 (3 years ago)
Author:
yushan
Message:

workflow graph : enable unary and binary arithmetic filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/parse_expr/filter_expr_node.cpp

    r1869 r2193  
    4141 
    4242        bool ret=field->buildWorkflowGraph(gc); 
     43        if(field->build_workflow_graph) thisField.build_workflow_graph.set(field->build_workflow_graph); 
    4344        if (ret) outputPin = field->getInstantDataFilter(); // if dependency is complete build the graph other return nullptr 
     45         
    4446      } 
    4547      else ERROR("boost::shared_ptr<COutputPin> CFilterFieldExprNode::reduce(CGarbageCollector& gc, CField& thisField) const", 
     
    110112    if (ret) ret->connectOutput(filter, 0); 
    111113    else filter.reset() ; 
     114     
     115    const bool buildGraph_ = !(thisField.build_workflow_graph.isEmpty()) && thisField.build_workflow_graph == true ; 
     116    if(buildGraph_) 
     117    { 
     118      filter->graphPackage = new CGraphPackage; 
     119      filter->graphEnabled = true; 
     120      filter->graphPackage->inFields.push_back(&thisField); 
     121    } 
     122 
    112123    return filter; 
    113124  } 
     
    130141    if (ret) ret->connectOutput(filter, 0); 
    131142    else filter.reset() ; 
     143     
     144    const bool buildGraph_ = !(thisField.build_workflow_graph.isEmpty()) && thisField.build_workflow_graph == true ; 
     145    if(buildGraph_) 
     146    { 
     147      filter->graphPackage = new CGraphPackage; 
     148      filter->graphEnabled = true; 
     149      filter->graphPackage->inFields.push_back(&thisField); 
     150    } 
     151 
    132152    return filter; 
    133153  } 
     
    149169    if (ret) ret->connectOutput(filter, 0); 
    150170    else filter.reset() ; 
     171     
     172    const bool buildGraph_ = !(thisField.build_workflow_graph.isEmpty()) && thisField.build_workflow_graph == true ; 
     173    if(buildGraph_) 
     174    { 
     175      filter->graphPackage = new CGraphPackage; 
     176      filter->graphEnabled = true; 
     177      filter->graphPackage->inFields.push_back(&thisField); 
     178    } 
    151179    return filter; 
    152180  } 
     
    173201    } 
    174202    else filter.reset() ; 
     203 
     204    const bool buildGraph_ = !(thisField.build_workflow_graph.isEmpty()) && thisField.build_workflow_graph == true ; 
     205    if(buildGraph_) 
     206    { 
     207      filter->graphPackage = new CGraphPackage; 
     208      filter->graphEnabled = true; 
     209      filter->graphPackage->inFields.push_back(&thisField); 
     210    } 
     211 
    175212    return filter; 
    176213  } 
Note: See TracChangeset for help on using the changeset viewer.