Changeset 2026 for XIOS/dev/dev_trunk_graph/src/node
- Timestamp:
- 02/01/21 11:54:16 (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
r2023 r2026 554 554 { 555 555 inputFilter = std::shared_ptr<CPassThroughFilter>(new CPassThroughFilter(gc)); 556 if(buildGraph_)556 /*if(buildGraph_) 557 557 { 558 558 std::cout<<"============== field "<<this->getId()<<" calls a pass through filter ============== "<<inputFilter<<" ***** "<<CXios::isClient<<std::endl; … … 560 560 inputFilter->graphPackage = new CGraphPackage; 561 561 inputFilter->graphPackage->inFields.push_back(this); 562 } 562 }*/ 563 563 } 564 564 … … 570 570 { 571 571 (*fieldRef).build_workflow_graph.set(build_workflow_graph); 572 inputFilter->label_field_id = fieldRef->getId();572 //inputFilter->label_field_id = fieldRef->getId(); 573 573 } 574 574 else … … 642 642 inputFilter->graphPackage = new CGraphPackage; 643 643 inputFilter->graphPackage->inFields.push_back(this); 644 inputFilter->label_field_id = getDirectFieldReference()->getId(); 644 645 } 645 646 } -
XIOS/dev/dev_trunk_graph/src/node/grid.cpp
r2023 r2026 1694 1694 TRY 1695 1695 { 1696 static bool transformationGoing = false; 1696 1697 registerAlgorithmTransformation() ; // needed to enable self-registration of the transformations 1697 1698 // big mystery why it doesn't work witout that... … … 1700 1701 std::shared_ptr<CFilter> inputFilter = std::shared_ptr<CPassThroughFilter>(new CPassThroughFilter(gc)); 1701 1702 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; 1704 1705 inputFilter->graphPackage = new CGraphPackage; 1705 1706 inputFilter->graphPackage->inFields.push_back(field); … … 1995 1996 transformFilter->graphPackage = new CGraphPackage; 1996 1997 transformFilter->graphPackage->inFields.push_back(field); 1998 transformFilter->graphPackage->show = !transformationGoing; 1997 1999 } 1998 2000 … … 2012 2014 if (hasRemainTransform) 2013 2015 { 2016 transformationGoing = true; 2014 2017 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) ; 2016 2020 outputFilter->connectOutput(filters.first,0) ; 2017 2021 outputFilter=filters.second ; 2018 2022 } 2023 transformationGoing = false; 2019 2024 } 2020 2025 -
XIOS/dev/dev_trunk_graph/src/node/grid.hpp
r2021 r2026 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, CField* field= nullptr) ;217 double defaultValue, CGrid*& newGrid, bool graphEnabled=false, CField* field=0) ; 218 218 private: 219 219 CGridAlgorithm* gridAlgorithm_ = nullptr ;
Note: See TracChangeset
for help on using the changeset viewer.