Changeset 1680 for XIOS/dev/dev_trunk_omp/src/filter/file_writer_filter.cpp
- Timestamp:
- 07/08/19 16:58:12 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/filter/file_writer_filter.cpp
r1679 r1680 22 22 { 23 23 bool building_graph = this->tag ? data[0]->timestamp >= this->start_graph && data[0]->timestamp <= this->end_graph: false; 24 24 25 if(building_graph) 25 26 { … … 27 28 int edgeID = InvalidableObject::edgeIdGenerator++; 28 29 29 if(CWorkflowGraph::mapFieldToFilters_ptr_with_info==0) CWorkflowGraph::mapFieldToFilters_ptr_with_info = new std::unordered_map <int, graph_info_box_edge >; 30 if(CWorkflowGraph::mapFilters_ptr_with_info==0) CWorkflowGraph::mapFilters_ptr_with_info = new std::unordered_map <int, graph_info_box_node>; 30 CWorkflowGraph::allocNodeEdge(); 31 31 32 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_name = "File Writer Filter"; 33 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_class = 4; 34 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_filled = 0; 35 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].expected_entry_nb = 1; 36 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].date = data[0]->date; 37 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].timestamp = data[0]->timestamp; 32 CWorkflowGraph::addNode(this->filterID, "File Writer Filter \\n("+this->field->file->getId()+".nc)", 6, 0, 1, data[0]); 38 33 39 if(CXios::isClient) std::cout<<"CFileWriterFilter::apply filter tag = "<<this->tag<<" start = "<<start_graph<<" end = "<<end_graph<<std::endl; 34 // (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->file->recordXiosAttributes(); 35 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->recordXiosAttributes(); 36 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes += "</br>file attributes : </br>" +this->field->file->recordXiosAttributes(); 37 38 // if(CXios::isClient) std::cout<<"CFileWriterFilter::apply filter tag = "<<this->tag<<" start = "<<start_graph<<" end = "<<end_graph<<std::endl; 40 39 41 40 if(CXios::isClient && CWorkflowGraph::build_begin)
Note: See TracChangeset
for help on using the changeset viewer.