Changeset 2305
- Timestamp:
- 03/08/22 12:30:26 (3 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_array_impl.hpp
r2146 r2305 113 113 bool CAttributeArray<T_numtype,N_rank>::isEqual_(const CAttributeArray& attr) 114 114 { 115 if ((!this->hasInheritedValue() && !attr.hasInheritedValue())) 116 return true; 117 if (this->hasInheritedValue() && attr.hasInheritedValue()) 118 return (this->getInheritedValue() == attr.getInheritedValue()); 119 else 120 return false; 115 if (this->isEmpty() && attr.isEmpty()) return true ; 116 if (!this->isEmpty() && !attr.isEmpty()) return (this->getValue() == attr.getValue()); 117 else return false; 121 118 } 122 119 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_enum_impl.hpp
r2146 r2305 121 121 bool CAttributeEnum<T>::isEqual_(const CAttributeEnum& attr) 122 122 { 123 if ((!this->hasInheritedValue() && !attr.hasInheritedValue())) 124 return true; 125 if (this->hasInheritedValue() && attr.hasInheritedValue()) 126 return (this->getInheritedValue() == attr.getInheritedValue()); 127 else 128 return false; 123 if (this->isEmpty() && attr.isEmpty()) return true ; 124 if (!this->isEmpty() && !attr.isEmpty()) return (this->getValue() == attr.getValue()); 125 else return false; 129 126 } 130 127 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_template_impl.hpp
r2146 r2305 165 165 bool CAttributeTemplate<T>::isEqual_(const CAttributeTemplate& attr) 166 166 { 167 if ((!this->hasInheritedValue() && !attr.hasInheritedValue())) 168 return true; 169 if (this->hasInheritedValue() && attr.hasInheritedValue()) 170 return (this->getInheritedValue() == attr.getInheritedValue()); 171 else 172 return false; 167 if (this->isEmpty() && attr.isEmpty()) return true ; 168 if (!this->isEmpty() && !attr.isEmpty()) return (this->getValue() == attr.getValue()); 169 else return false; 173 170 } 174 171 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/declare_ref_func.hpp
r2203 r2305 50 50 refObjects.push_back(refer_ptr); \ 51 51 SuperClassAttribute::setAttributes(refer_ptr, apply); \ 52 setInheritedId(refer_ptr) ; \52 if (apply) setInheritedId(refer_ptr) ; \ 53 53 } \ 54 54 } \ -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp
r2304 r2305 1810 1810 CDomain* pDom = CDomain::get(domainId); 1811 1811 pDom->solveRefInheritance(apply); 1812 pDom->solveInheritanceTransformation();1812 if (apply) pDom->solveInheritanceTransformation(); 1813 1813 } 1814 1814 … … 1818 1818 CAxis* pAxis = CAxis::get(axisId); 1819 1819 pAxis->solveRefInheritance(apply); 1820 pAxis->solveInheritanceTransformation();1820 if (apply) pAxis->solveInheritanceTransformation(); 1821 1821 } 1822 1822 … … 1826 1826 CScalar* pScalar = CScalar::get(scalarId); 1827 1827 pScalar->solveRefInheritance(apply); 1828 pScalar->solveInheritanceTransformation();1828 if (apply) pScalar->solveInheritanceTransformation(); 1829 1829 } 1830 1830 }
Note: See TracChangeset
for help on using the changeset viewer.