Changeset 787 for XIOS/trunk/src/node/zoom_domain.cpp
- Timestamp:
- 11/13/15 11:45:12 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/zoom_domain.cpp
r680 r787 29 29 30 30 // Résolution et vérification des données globales de zoom. 31 if (!this-> zoom_ni.isEmpty() || !this->zoom_nj.isEmpty() ||32 !this-> zoom_ibegin.isEmpty() || !this->zoom_jbegin.isEmpty())31 if (!this->ni.isEmpty() || !this->nj.isEmpty() || 32 !this->ibegin.isEmpty() || !this->jbegin.isEmpty()) 33 33 { 34 if (this-> zoom_ni.isEmpty() || this->zoom_nj.isEmpty() ||35 this-> zoom_ibegin.isEmpty() || this->zoom_jbegin.isEmpty())34 if (this->ni.isEmpty() || this->nj.isEmpty() || 35 this->ibegin.isEmpty() || this->jbegin.isEmpty()) 36 36 { 37 37 ERROR("CZoomDomain::checkValid(CDomain* domainSrc)", … … 40 40 else 41 41 { 42 int zoom_iend = zoom_ibegin + zoom_ni - 1;43 int zoom_jend = zoom_jbegin + zoom_nj - 1;42 int iend = ibegin + ni - 1; 43 int jend = jbegin + nj - 1; 44 44 45 if ( zoom_ibegin < 0 || zoom_jbegin < 0 || zoom_iend > ni_glo - 1 || zoom_jend > nj_glo - 1)45 if (ibegin < 0 || jbegin < 0 || iend > ni_glo - 1 || jend > nj_glo - 1) 46 46 ERROR("CZoomDomain::checkValid(CDomain* domainSrc)", 47 47 << "Zoom is wrongly defined, " 48 << "please check the values : ' zoom_ni' (" << zoom_ni.getValue() << "), 'zoom_nj' (" << zoom_nj.getValue() << "), "49 << "' zoom_ibegin' (" << zoom_ibegin.getValue() << "), 'zoom_jbegin' (" << zoom_jbegin.getValue() << ")");48 << "please check the values : 'ni' (" << ni.getValue() << "), 'nj' (" << nj.getValue() << "), " 49 << "'ibegin' (" << ibegin.getValue() << "), 'jbegin' (" << jbegin.getValue() << ")"); 50 50 } 51 51 } 52 52 else 53 53 { 54 zoom_ni = ni_glo;55 zoom_nj = nj_glo;56 zoom_ibegin = 0;57 zoom_jbegin = 0;54 ni = ni_glo; 55 nj = nj_glo; 56 ibegin = 0; 57 jbegin = 0; 58 58 } 59 59 }
Note: See TracChangeset
for help on using the changeset viewer.