Changeset 1988 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp
- Timestamp:
- 12/14/20 09:59:23 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp
r1986 r1988 176 176 177 177 } 178 178 179 179 // grid->solveElementsRefInheritance(true); 180 180 grid->computeElements() ; 181 181 return grid; 182 182 } … … 1905 1905 1906 1906 std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> > 1907 CGrid::buildTransformationGraph(CGarbageCollector& gc, CGrid* gridSrc, double detectMissingValues, double defaultValue, CGrid*& newGrid)1907 CGrid::buildTransformationGraph(CGarbageCollector& gc, bool isSource, CGrid* gridSrc, double detectMissingValues, double defaultValue, CGrid*& newGrid) 1908 1908 TRY 1909 1909 { … … 1982 1982 transformationPath.removeNextTransform() ; 1983 1983 dstDomain->setTransformationPaths(transformationPath) ; 1984 newGrid->addDomain(dstDomain->getId()) ;1985 1984 } 1985 newGrid->addDomain(dstDomain->getId()) ; 1986 1986 algo = dstDomain->getTransformationAlgorithm() ; 1987 1987 } … … 2009 2009 transformationPath.removeNextTransform() ; 2010 2010 dstAxis->setTransformationPaths(transformationPath) ; 2011 newGrid->addAxis(dstAxis->getId()) ;2012 2011 } 2012 newGrid->addAxis(dstAxis->getId()) ; 2013 2013 algo = dstAxis->getTransformationAlgorithm() ; 2014 2014 } … … 2036 2036 transformationPath.removeNextTransform() ; 2037 2037 dstScalar->setTransformationPaths(transformationPath) ; 2038 newGrid->addScalar(dstScalar->getId()) ;2039 2038 } 2039 newGrid->addScalar(dstScalar->getId()) ; 2040 2040 algo = dstScalar->getTransformationAlgorithm() ; 2041 2041 } … … 2098 2098 if (hadTransform) 2099 2099 { 2100 shared_ptr<CTransformFilter> transformFilter = shared_ptr<CTransformFilter>(new CTransformFilter(gc, algo, dimBefore, dimAfter, detectMissingValues, defaultValue)) ; 2101 outputFilter->connectOutput(transformFilter,0) ; 2102 outputFilter = transformFilter ; 2100 if (!isSource) 2101 { 2102 shared_ptr<CTransformFilter> transformFilter = shared_ptr<CTransformFilter>(new CTransformFilter(gc, algo, dimBefore, dimAfter, detectMissingValues, defaultValue)) ; 2103 outputFilter->connectOutput(transformFilter,0) ; 2104 outputFilter = transformFilter ; 2105 } 2103 2106 2104 2107 gridSrc=newGrid ; 2105 pair<shared_ptr<CFilter>, shared_ptr<CFilter> > filters = gridSrc->buildTransformationGraph(gc, gridSrc, detectMissingValues, defaultValue, newGrid) ;2108 pair<shared_ptr<CFilter>, shared_ptr<CFilter> > filters = gridSrc->buildTransformationGraph(gc, isSource, gridSrc, detectMissingValues, defaultValue, newGrid) ; 2106 2109 outputFilter->connectOutput(filters.first,0) ; 2107 2110 outputFilter=filters.second ;
Note: See TracChangeset
for help on using the changeset viewer.