Ignore:
Timestamp:
07/19/19 15:28:33 (5 years ago)
Author:
yushan
Message:

MARK: Dynamic workflow graph developement. Branch up to date with trunk @1676. Bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/filter/store_filter.cpp

    r1680 r1681  
    8989  template CDataPacket::StatusCode CStoreFilter::getData<7>(Time timestamp, CArray<double, 7>& data); 
    9090 
    91   void CStoreFilter::onInputReady(std::vector<CDataPacketPtr> data) 
     91  void CStoreFilter::buildGraph(std::vector<CDataPacketPtr> data) 
    9292  { 
    93  
    9493    bool building_graph = this->tag ? data[0]->timestamp >= this->start_graph && data[0]->timestamp <= this->end_graph : false; 
    9594 
     
    101100      CWorkflowGraph::allocNodeEdge(); 
    102101  
    103       CWorkflowGraph::addNode(this->filterID, "Store Filter", 4, 1, 1, data[0]); 
    104       (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->recordXiosAttributes(); 
    105       if(this->field->file) (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes += "</br>file attributes : </br>" +this->field->file->recordXiosAttributes(); 
     102      CWorkflowGraph::addNode(this->filterID, "Store Filter", 7, 1, 1, data[0]); 
     103      (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = ++(data[0]->distance); 
     104      (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->record4graphXiosAttributes(); 
     105      if(this->field->file) (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes += "</br>file attributes : </br>" +this->field->file->record4graphXiosAttributes(); 
    106106 
    107107      // if(CXios::isClient) std::cout<<"CStoreFilter::apply filter tag = "<<this->tag<<std::endl; 
     
    114114      else CWorkflowGraph::build_begin = true; 
    115115    } 
     116  } 
    116117 
    117  
     118  void CStoreFilter::onInputReady(std::vector<CDataPacketPtr> data) 
     119  { 
     120    buildGraph(data); 
    118121 
    119122    CDataPacketPtr packet; 
Note: See TracChangeset for help on using the changeset viewer.