Ignore:
Timestamp:
07/08/19 16:58:12 (5 years ago)
Author:
yushan
Message:

MARK: Dynamic workflow graph developement. Branch up to date with trunk @1676. Arithmetic filter unified

File:
1 edited

Legend:

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

    r1679 r1680  
    99#endif 
    1010#include "workflow_graph.hpp" 
     11#include "file.hpp" 
    1112namespace xios 
    1213{ 
     
    184185    { 
    185186      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 
    203195 
    204196      if(CWorkflowGraph::build_begin) 
     
    229221      if (0 != packet->data.numElements()) 
    230222        (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); 
    232225    } 
    233226 
     
    354347        int srcRank = itRecv->first; 
    355348 
    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        }  
    357353        if (srcRank != rank) 
    358354        { 
Note: See TracChangeset for help on using the changeset viewer.