Changeset 2021 for XIOS/dev/dev_trunk_graph/src/node
- Timestamp:
- 01/22/21 18:35:44 (3 years ago)
- Location:
- XIOS/dev/dev_trunk_graph/src/node
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_graph/src/node/field.cpp
r2019 r2021 614 614 // new 615 615 616 std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> > filters = grid->buildTransformationGraph(gc, false, gridSrc, detectMissingValues, defaultValue, newGrid, buildGraph_ ) ;616 std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> > filters = grid->buildTransformationGraph(gc, false, gridSrc, detectMissingValues, defaultValue, newGrid, buildGraph_, this) ; 617 617 lastFilter->connectOutput(filters.first, 0); 618 if(buildGraph_)618 /*if(buildGraph_) 619 619 { 620 620 std::cout<<"============== field "<<this->getId()<<" calls a transformation filter 1 ============== "<<lastFilter<<" _ "<<filters.first<<" ***** "<<CXios::isClient<<std::endl; … … 622 622 filters.first->graphPackage = new CGraphPackage; 623 623 filters.first->graphPackage->inFields.push_back(this); 624 } 624 }*/ 625 625 lastFilter = filters.second; 626 626 gridSrc = newGrid ; -
XIOS/dev/dev_trunk_graph/src/node/grid.cpp
r2019 r2021 1691 1691 1692 1692 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) 1694 1694 TRY 1695 1695 { … … 1714 1714 else 1715 1715 { 1716 cout<<"Create new grid : "<<newId<<endl ; 1716 StdString role = CXios::isClient? "Client ": "Server "; 1717 cout<<role<<"Create new grid : "<<newId<<endl ; 1717 1718 newGrid = CGrid::create(newId) ; 1718 1719 isNewGrid = true ; … … 1986 1987 shared_ptr<CTransformFilter> transformFilter = shared_ptr<CTransformFilter>(gridAlgorithm->createTransformFilter(gc, detectMissingValues, defaultValue)) ; 1987 1988 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 1988 1996 vector<string> auxFieldId = algo->getAuxFieldId() ; // better to do that at transformation not algo ?? 1989 1997 int i=1; … … 1994 2002 auxField->getInstantDataFilter()->connectOutput(transformFilter,i) ; 1995 2003 i++ ; 2004 1996 2005 } 1997 2006 outputFilter = transformFilter ; -
XIOS/dev/dev_trunk_graph/src/node/grid.hpp
r2019 r2021 215 215 public: 216 216 pair<shared_ptr<CFilter>, shared_ptr<CFilter> > buildTransformationGraph(CGarbageCollector& gc, bool isSource, CGrid* gridSrc, double detectMissingValues, 217 double defaultValue, CGrid*& newGrid, bool graphEnabled=false ) ;217 double defaultValue, CGrid*& newGrid, bool graphEnabled=false, CField* field=nullptr) ; 218 218 private: 219 219 CGridAlgorithm* gridAlgorithm_ = nullptr ;
Note: See TracChangeset
for help on using the changeset viewer.