Changeset 2144 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp
- Timestamp:
- 06/04/21 11:55:52 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp
r2128 r2144 1640 1640 1641 1641 std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> > 1642 CGrid::buildTransformationGraph(CGarbageCollector& gc, bool isSource, CGrid* gridSrc, double detectMissingValues, double defaultValue, CGrid*& newGrid) 1643 TRY 1644 { 1642 CGrid::buildTransformationGraph(CGarbageCollector& gc, bool isSource, CGrid* gridSrc, double detectMissingValues, double defaultValue, CGrid*& newGrid, bool graphEnabled, CField* field) 1643 TRY 1644 { 1645 static bool transformationGoing = false; 1645 1646 registerAlgorithmTransformation() ; // needed to enable self-registration of the transformations 1646 1647 // big mystery why it doesn't work witout that... … … 1936 1937 shared_ptr<CTransformFilter> transformFilter = shared_ptr<CTransformFilter>(gridAlgorithm->createTransformFilter(gc, detectMissingValues, defaultValue)) ; 1937 1938 outputFilter->connectOutput(transformFilter,0) ; 1939 if(graphEnabled) 1940 { 1941 transformFilter->graphEnabled=true; 1942 transformFilter->graphPackage = new CGraphPackage; 1943 transformFilter->graphPackage->inFields.push_back(field); 1944 transformFilter->graphPackage->show = !transformationGoing; 1945 } 1946 1938 1947 vector<string> auxFieldId = algo->getAuxFieldId() ; // better to do that at transformation not algo ?? 1939 1948 int i=1; … … 1950 1959 if (hasRemainTransform) 1951 1960 { 1961 transformationGoing = true; 1952 1962 gridSrc=newGrid ; 1953 pair<shared_ptr<CFilter>, shared_ptr<CFilter> > filters = this->buildTransformationGraph(gc, isSource, gridSrc, detectMissingValues, defaultValue, newGrid) ; 1963 CField *field_bis = field; 1964 pair<shared_ptr<CFilter>, shared_ptr<CFilter> > filters = this->buildTransformationGraph(gc, isSource, gridSrc, detectMissingValues, defaultValue, newGrid, graphEnabled, field_bis) ; 1954 1965 outputFilter->connectOutput(filters.first,0) ; 1955 1966 outputFilter=filters.second ; 1956 1967 } 1968 transformationGoing = false; 1957 1969 } 1958 1970
Note: See TracChangeset
for help on using the changeset viewer.