Ignore:
Timestamp:
01/22/21 18:35:44 (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

    r2019 r2021  
    16911691 
    16921692  std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> >  
    1693   CGrid::buildTransformationGraph(CGarbageCollector& gc, bool isSource, CGrid* gridSrc, double detectMissingValues, double defaultValue, CGrid*& newGrid, bool graphEnabled) 
     1693  CGrid::buildTransformationGraph(CGarbageCollector& gc, bool isSource, CGrid* gridSrc, double detectMissingValues, double defaultValue, CGrid*& newGrid, bool graphEnabled, CField* field) 
    16941694  TRY 
    16951695  { 
     
    17141714    else   
    17151715    { 
    1716       cout<<"Create new grid : "<<newId<<endl ; 
     1716      StdString role = CXios::isClient? "Client ": "Server "; 
     1717      cout<<role<<"Create new grid : "<<newId<<endl ; 
    17171718      newGrid = CGrid::create(newId) ; 
    17181719      isNewGrid = true ; 
     
    19861987        shared_ptr<CTransformFilter> transformFilter = shared_ptr<CTransformFilter>(gridAlgorithm->createTransformFilter(gc, detectMissingValues, defaultValue)) ; 
    19871988        outputFilter->connectOutput(transformFilter,0) ; 
     1989        if(graphEnabled) 
     1990        { 
     1991          transformFilter->graphEnabled=true; 
     1992          transformFilter->graphPackage = new CGraphPackage; 
     1993          transformFilter->graphPackage->inFields.push_back(field); 
     1994        } 
     1995         
    19881996        vector<string> auxFieldId = algo->getAuxFieldId() ; // better to do that at transformation not algo ?? 
    19891997        int i=1;  
     
    19942002          auxField->getInstantDataFilter()->connectOutput(transformFilter,i) ; 
    19952003          i++ ; 
     2004           
    19962005        } 
    19972006        outputFilter = transformFilter ; 
Note: See TracChangeset for help on using the changeset viewer.