- Timestamp:
- 07/06/22 15:29:52 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp
r2343 r2351 1951 1951 if (CGrid::has(newId)) 1952 1952 { 1953 cout<<"Retrive existing grid : "<<newId<<endl ;1953 info(100)<<"Retrive existing grid : "<<newId<<endl ; 1954 1954 newGrid = CGrid::get(newId); 1955 1955 isNewGrid = false ; … … 1957 1957 else 1958 1958 { 1959 cout<<"Create new grid : "<<newId<<endl ;1959 info(100)<<"Create new grid : "<<newId<<endl ; 1960 1960 newGrid = CGrid::create(newId) ; 1961 1961 isNewGrid = true ; … … 1978 1978 1979 1979 SElement srcElement ; 1980 if (gridSrc==nullptr) srcElement = this->elements_[i] ; 1981 else srcElement = gridSrc->elements_[i] ; 1982 1983 if (gridSrc==nullptr) transformationPath.mergePaths() ; 1980 1981 CTransformationPaths testTransformationPath(transformationPath) ; 1982 testTransformationPath.mergePaths() ; 1983 1984 if (testTransformationPath.hasTransform()) 1985 { 1986 if (gridSrc==nullptr) srcElement = this->elements_[i] ; 1987 else srcElement = gridSrc->elements_[i] ; 1988 1989 if (gridSrc==nullptr) transformationPath.mergePaths() ; 1990 else 1991 { 1992 if (srcElement.type==TYPE_DOMAIN) transformationPath.mergePaths(srcElement.domain->getTransformationPaths()) ; 1993 else if (srcElement.type==TYPE_AXIS) transformationPath.mergePaths(srcElement.axis->getTransformationPaths()) ; 1994 else if (srcElement.type==TYPE_SCALAR) transformationPath.mergePaths(srcElement.scalar->getTransformationPaths()) ; 1995 } 1996 } 1984 1997 else 1985 { 1986 if (srcElement.type==TYPE_DOMAIN) transformationPath.mergePaths(srcElement.domain->getTransformationPaths()) ; 1987 else if (srcElement.type==TYPE_AXIS) transformationPath.mergePaths(srcElement.axis->getTransformationPaths()) ; 1988 else if (srcElement.type==TYPE_SCALAR) transformationPath.mergePaths(srcElement.scalar->getTransformationPaths()) ; 1989 } 1998 { 1999 srcElement = this->elements_[i] ; 2000 transformationPath.mergePaths() ; 2001 } 1990 2002 1991 2003 hasTransform=transformationPath.hasTransform() ; … … 2009 2021 map<int,int> posInGrid={{0,0}} ; 2010 2022 2011 cout<<"--> New transform from "<<srcElementId<<" to "<<dstElementId<<endl ;2023 info(100)<<"--> New transform from "<<srcElementId<<" to "<<dstElementId<<endl ; 2012 2024 if (dstElementType==EElement::DOMAIN) 2013 2025 { … … 2022 2034 { 2023 2035 dstDomain = CDomain::get(dstElementId) ; 2024 cout<<"Retrive existing domain : "<<dstElementId<<endl ;2036 info(100)<<"Retrive existing domain : "<<dstElementId<<endl ; 2025 2037 } 2026 2038 else … … 2028 2040 dstDomain = CDomain::create() ; 2029 2041 dstDomain->createAlias(dstElementId) ; 2030 cout<<"Create new domain : "<<dstDomain->getId()<<" with alias : "<<dstElementId<<endl ;2042 info(100)<<"Create new domain : "<<dstDomain->getId()<<" with alias : "<<dstElementId<<endl ; 2031 2043 2032 2044 if (isGenerate) … … 2084 2096 { 2085 2097 dstAxis = CAxis::get(dstElementId) ; 2086 cout<<"Retrive existing axis : "<<dstElementId<<endl ;2098 info(100)<<"Retrive existing axis : "<<dstElementId<<endl ; 2087 2099 } 2088 2100 else … … 2090 2102 dstAxis = CAxis::create() ; 2091 2103 dstAxis->createAlias(dstElementId) ; 2092 cout<<"Create new axis : "<<dstAxis->getId()<<" with alias : "<<dstElementId<<endl ;2104 info(100)<<"Create new axis : "<<dstAxis->getId()<<" with alias : "<<dstElementId<<endl ; 2093 2105 2094 2106 if (isGenerate) … … 2145 2157 { 2146 2158 dstScalar = CScalar::get(dstElementId) ; 2147 cout<<"Retrive existing scalar : "<<dstElementId<<endl ;2159 info(100)<<"Retrive existing scalar : "<<dstElementId<<endl ; 2148 2160 } 2149 2161 else … … 2151 2163 dstScalar = CScalar::create() ; 2152 2164 dstScalar->createAlias(dstElementId) ; 2153 cout<<"Create new scalar : "<<dstScalar->getId()<<" with alias : "<<dstElementId<<endl ;2165 info(100)<<"Create new scalar : "<<dstScalar->getId()<<" with alias : "<<dstElementId<<endl ; 2154 2166 2155 2167 if (isGenerate) … … 2323 2335 domain->duplicateAttributes(element.domain) ; 2324 2336 domain->setTemplateId(element.domain) ; 2325 if (domain->name.isEmpty()) domain->name = element.domain->getId() ;2337 domain->name = domain->getDomainOutputName() ; 2326 2338 newGrid->addDomain(domain->getId()) ; 2327 2339 } … … 2331 2343 axis->duplicateAttributes(element.axis) ; 2332 2344 axis->setTemplateId(element.axis) ; 2333 if (axis->name.isEmpty()) axis->name = element.axis->getId() ;2345 axis->name = axis->getAxisOutputName() ; 2334 2346 newGrid->addAxis(axis->getId()) ; 2335 2347 } … … 2339 2351 scalar->duplicateAttributes(element.scalar) ; 2340 2352 scalar->setTemplateId(element.scalar) ; 2341 if (scalar->name.isEmpty()) scalar->name = element.scalar->getId() ;2353 scalar->name = scalar->getScalarOutputName() ; 2342 2354 newGrid->addScalar(scalar->getId()) ; 2343 2355 }
Note: See TracChangeset
for help on using the changeset viewer.