Ignore:
Timestamp:
02/01/21 11:54:16 (3 years ago)
Author:
yushan
Message:

Graph intermediate commit to a tmp branch.

Location:
XIOS/dev/dev_trunk_graph/src/node
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_graph/src/node/field.cpp

    r2023 r2026  
    554554    { 
    555555      inputFilter = std::shared_ptr<CPassThroughFilter>(new CPassThroughFilter(gc));  
    556       if(buildGraph_) 
     556      /*if(buildGraph_) 
    557557      { 
    558558        std::cout<<"============== field "<<this->getId()<<" calls a pass through filter ============== "<<inputFilter<<" ***** "<<CXios::isClient<<std::endl; 
     
    560560        inputFilter->graphPackage = new CGraphPackage; 
    561561        inputFilter->graphPackage->inFields.push_back(this); 
    562       } 
     562      }*/ 
    563563    } 
    564564      
     
    570570      { 
    571571        (*fieldRef).build_workflow_graph.set(build_workflow_graph);  
    572         inputFilter->label_field_id = fieldRef->getId();  
     572        //inputFilter->label_field_id = fieldRef->getId();  
    573573      }     
    574574      else 
     
    642642        inputFilter->graphPackage = new CGraphPackage; 
    643643        inputFilter->graphPackage->inFields.push_back(this); 
     644        inputFilter->label_field_id = getDirectFieldReference()->getId();  
    644645      } 
    645646    } 
  • XIOS/dev/dev_trunk_graph/src/node/grid.cpp

    r2023 r2026  
    16941694  TRY 
    16951695  { 
     1696    static bool transformationGoing = false; 
    16961697    registerAlgorithmTransformation() ; // needed to enable self-registration of the transformations 
    16971698                                        // big mystery why it doesn't work witout that... 
     
    17001701    std::shared_ptr<CFilter> inputFilter = std::shared_ptr<CPassThroughFilter>(new CPassThroughFilter(gc)); 
    17011702    std::shared_ptr<CFilter> outputFilter = inputFilter ; 
    1702     /*cout<<"***************CGrid::buildTransformationGraph***************"<<field->getId()<<" CGrid::buildTransformationGraph"<<endl; 
    1703     inputFilter->graphEnabled = true; 
     1703    cout<<"***************CGrid::buildTransformationGraph Pass through filter ***************"<<transformationGoing<<field->getId()<<endl; 
     1704    /*inputFilter->graphEnabled = true; 
    17041705    inputFilter->graphPackage = new CGraphPackage; 
    17051706    inputFilter->graphPackage->inFields.push_back(field); 
     
    19951996          transformFilter->graphPackage = new CGraphPackage; 
    19961997          transformFilter->graphPackage->inFields.push_back(field); 
     1998          transformFilter->graphPackage->show = !transformationGoing; 
    19971999        } 
    19982000         
     
    20122014      if (hasRemainTransform) 
    20132015      { 
     2016        transformationGoing = true; 
    20142017        gridSrc=newGrid ; 
    2015         pair<shared_ptr<CFilter>, shared_ptr<CFilter> > filters = this->buildTransformationGraph(gc, isSource, gridSrc, detectMissingValues, defaultValue, newGrid) ; 
     2018        CField *field_bis = field; 
     2019        pair<shared_ptr<CFilter>, shared_ptr<CFilter> > filters = this->buildTransformationGraph(gc, isSource, gridSrc, detectMissingValues, defaultValue, newGrid, graphEnabled, field_bis) ; 
    20162020        outputFilter->connectOutput(filters.first,0) ; 
    20172021        outputFilter=filters.second ; 
    20182022      } 
     2023      transformationGoing = false; 
    20192024    } 
    20202025      
  • XIOS/dev/dev_trunk_graph/src/node/grid.hpp

    r2021 r2026  
    215215      public: 
    216216         pair<shared_ptr<CFilter>, shared_ptr<CFilter> > buildTransformationGraph(CGarbageCollector& gc, bool isSource, CGrid* gridSrc, double detectMissingValues, 
    217                                                                                   double defaultValue, CGrid*& newGrid, bool graphEnabled=false, CField* field=nullptr) ; 
     217                                                                                  double defaultValue, CGrid*& newGrid, bool graphEnabled=false, CField* field=0) ; 
    218218      private: 
    219219        CGridAlgorithm* gridAlgorithm_ = nullptr ; 
Note: See TracChangeset for help on using the changeset viewer.