- Timestamp:
- 07/08/19 16:58:12 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/filter/spatial_transform_filter.cpp
r1679 r1680 9 9 #endif 10 10 #include "workflow_graph.hpp" 11 #include "file.hpp" 11 12 namespace xios 12 13 { … … 184 185 { 185 186 this->filterID = InvalidableObject::filterIdGenerator++; 186 int edgeID = InvalidableObject::edgeIdGenerator++; 187 188 std::cout<<"CSpatialTransformFilter::apply filter tag = "<<tag<<" start = "<<start_graph<<" end = "<<end_graph<<std::endl; 189 190 191 if(CWorkflowGraph::mapFilters_ptr_with_info==0) CWorkflowGraph::mapFilters_ptr_with_info = new std::unordered_map <int, graph_info_box_node>; 192 193 194 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_name = "Spatial Transform Filter"; 195 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_class = 6; 196 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_filled = 1; 197 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].expected_entry_nb = 1; 198 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].date = data[0]->date; 199 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].timestamp = data[0]->timestamp; 200 201 202 if(CWorkflowGraph::mapFieldToFilters_ptr_with_info==0) CWorkflowGraph::mapFieldToFilters_ptr_with_info = new std::unordered_map <int, graph_info_box_edge >; 187 int edgeID = InvalidableObject::edgeIdGenerator++; 188 189 CWorkflowGraph::allocNodeEdge(); 190 191 CWorkflowGraph::addNode(this->filterID, "Spatial Transform Filter", 4, 1, 1, data[0]); 192 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = field->recordXiosAttributes(); 193 if(field->file) (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes += "</br>file attributes : </br>" +field->file->recordXiosAttributes(); 194 203 195 204 196 if(CWorkflowGraph::build_begin) … … 229 221 if (0 != packet->data.numElements()) 230 222 (packet->data)(0) = defaultValue; 231 apply(data[0]->data, packet->data, this->filterID); 223 if(building_graph) apply(data[0]->data, packet->data, this->filterID); 224 else apply(data[0]->data, packet->data); 232 225 } 233 226 … … 354 347 int srcRank = itRecv->first; 355 348 356 if(filterID >=0) (*CWorkflowGraph::mapFilters_ptr_with_info)[filterID].transform_type = (*itAlgo)->getName(); 349 if(filterID >=0) 350 { 351 (*CWorkflowGraph::mapFilters_ptr_with_info)[filterID].filter_name = (*itAlgo)->getName(); 352 } 357 353 if (srcRank != rank) 358 354 {
Note: See TracChangeset
for help on using the changeset viewer.