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

Graph intermediate commit to a tmp branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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      
Note: See TracChangeset for help on using the changeset viewer.