Changeset 2026 for XIOS/dev/dev_trunk_graph/src/node/grid.cpp
- Timestamp:
- 02/01/21 11:54:16 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.