Changeset 2632
- Timestamp:
- 05/29/24 19:23:08 (8 months ago)
- Location:
- XIOS3/trunk/src/node
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/node/axis.cpp
r2613 r2632 279 279 */ 280 280 281 void CAxis::checkAttributes( void)282 { 283 if ( checkAttributes_done_) return ;281 void CAxis::checkAttributes(bool recheck) 282 { 283 if (!recheck && checkAttributes_done_) return ; 284 284 checkGeometricAttributes(true) ; 285 285 initializeLocalElement() ; … … 291 291 } 292 292 293 void CAxis::resetGeometricAttributes(void)293 void CAxis::resetGeometricAttributes(void) 294 294 { 295 295 n_glo.reset(); -
XIOS3/trunk/src/node/axis.hpp
r2507 r2632 124 124 125 125 /// Vérifications /// 126 void checkAttributes( void);126 void checkAttributes(bool recheck=false); 127 127 bool checkAttributes_done_ = false ; 128 128 bool checkGeometricAttributes(bool generateError) ; -
XIOS3/trunk/src/node/domain.cpp
r2613 r2632 1760 1760 CATCH_DUMP_ATTR 1761 1761 1762 void CDomain::checkAttributes( void)1763 TRY 1764 { 1765 if ( this->checkAttributes_done_) return;1762 void CDomain::checkAttributes(bool recheck) 1763 TRY 1764 { 1765 if (!recheck && checkAttributes_done_) return ; 1766 1766 this->checkDomain(); 1767 1767 this->compute2dBox() ; … … 1804 1804 } 1805 1805 CATCH_DUMP_ATTR 1806 1807 1806 1808 1807 1809 size_t CDomain::computeAttributesHash( MPI_Comm comm ) -
XIOS3/trunk/src/node/domain.hpp
r2507 r2632 88 88 89 89 /// Vérifications /// 90 void checkAttributes( void);90 void checkAttributes(bool recheck=false); 91 91 bool checkAttributes_done_ = false ; 92 92 -
XIOS3/trunk/src/node/field.cpp
r2629 r2632 749 749 //grid_->completeGrid(); // grid generation, to be checked 750 750 if (fileIn_->isClientSide()) fileIn_->readFieldAttributesValues(this); 751 grid_->checkElementsAttributes( ) ;751 grid_->checkElementsAttributes(true) ; // need to recheck 752 752 // grid_->solveDomainAxisBaseRef(); 753 753 // probably in future tag grid incomplete if coming from a reading … … 781 781 } 782 782 } 783 784 // do again ref inheritance for field attributes read from file 785 this->solveRefInheritance(); 783 786 784 787 buildWorkflowGraphDone_ = true ; -
XIOS3/trunk/src/node/grid.cpp
r2507 r2632 1974 1974 \brief check attributes of all elements of the grid 1975 1975 */ 1976 void CGrid::checkElementsAttributes( void)1976 void CGrid::checkElementsAttributes(bool recheck) 1977 1977 TRY 1978 1978 { 1979 1979 setDomainList(); 1980 for (auto domainId : domList_) CDomain::get(domainId)->checkAttributes( );1980 for (auto domainId : domList_) CDomain::get(domainId)->checkAttributes(recheck); 1981 1981 1982 1982 setAxisList(); 1983 for (auto axisId : axisList_) CAxis::get(axisId)->checkAttributes( );1983 for (auto axisId : axisList_) CAxis::get(axisId)->checkAttributes(recheck); 1984 1984 1985 1985 setScalarList(); 1986 for (auto scalarId : scalarList_) CScalar::get(scalarId)->checkAttributes( );1986 for (auto scalarId : scalarList_) CScalar::get(scalarId)->checkAttributes(recheck); 1987 1987 } 1988 1988 CATCH_DUMP_ATTR -
XIOS3/trunk/src/node/grid.hpp
r2507 r2632 157 157 public: 158 158 void solveDomainAxisRef(bool areAttributesChecked); 159 void checkElementsAttributes( void) ;159 void checkElementsAttributes(bool recheck=false) ; 160 160 161 161 void solveDomainRef(bool checkAtt); -
XIOS3/trunk/src/node/scalar.cpp
r2507 r2632 116 116 } 117 117 118 void CScalar::checkAttributes( void)119 { 120 if ( checkAttributes_done_) return ;118 void CScalar::checkAttributes(bool recheck) 119 { 120 if (!recheck && checkAttributes_done_) return ; 121 121 checkAttributes_done_ = true ; 122 122 … … 134 134 addModelView() ; 135 135 } 136 136 137 137 /*! 138 138 Compare two scalar objects. -
XIOS3/trunk/src/node/scalar.hpp
r2507 r2632 88 88 89 89 public: 90 void checkAttributes( void);90 void checkAttributes(bool recheck=false); 91 91 bool checkAttributes_done_ = false ; 92 92
Note: See TracChangeset
for help on using the changeset viewer.