Changeset 1704 for XIOS/trunk/src/filter/source_filter.cpp
- Timestamp:
- 09/11/19 10:22:09 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/filter/source_filter.cpp
r1637 r1704 4 4 #include "calendar_util.hpp" 5 5 #include <limits> 6 #include "workflow_graph.hpp" 6 7 7 8 namespace xios … … 23 24 "Impossible to construct a source filter without providing a grid."); 24 25 } 26 27 void CSourceFilter::buildGraph(CDataPacketPtr packet) 28 { 29 bool building_graph = this->tag ? packet->timestamp >= this->field->field_graph_start && packet->timestamp <= this->field->field_graph_end : false; 30 if(building_graph) 31 { 32 this->filterID = InvalidableObject::filterIdGenerator++; 33 packet->src_filterID=this->filterID; 34 packet->field = this->field; 35 packet->distance = 1; 36 37 38 CWorkflowGraph::allocNodeEdge(); 39 40 CWorkflowGraph::addNode(this->filterID, "Source Filter ", 1, 1, 0, packet); 41 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->record4graphXiosAttributes(); 42 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].field_id = this->field->getId(); 43 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = 1; 44 45 CWorkflowGraph::build_begin = true; 46 } 47 48 } 49 25 50 26 51 template <int N> … … 59 84 } 60 85 } 86 87 if(CXios::isClient) buildGraph(packet); 88 89 61 90 62 91 onOutputReady(packet);
Note: See TracChangeset
for help on using the changeset viewer.