Changeset 678 for XIOS/branchs
- Timestamp:
- 08/31/15 16:19:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/node/domain.cpp
r611 r678 172 172 173 173 174 if (ni.getValue() < 0 || ibegin.getValue() > iend.getValue() ||174 if (ni.getValue() < 0 || (ni.getValue() > 0 && ibegin.getValue() > iend.getValue()) || 175 175 ibegin.getValue() < 1 || iend.getValue() > ni_glo.getValue()) 176 176 { … … 210 210 } 211 211 212 if (nj.getValue() < 0 || jbegin.getValue() > jend.getValue() ||212 if (nj.getValue() < 0 || (nj.getValue() > 0 && jbegin.getValue() > jend.getValue()) || 213 213 jbegin.getValue() < 1 || jend.getValue() > nj_glo.getValue()) 214 214 ERROR("CDomain::checkAttributes(void)", … … 302 302 if (data_ibegin.isEmpty()) 303 303 data_ibegin.setValue(0) ; 304 if (data_jbegin.isEmpty() && (data_dim.getValue() == 2))304 if (data_jbegin.isEmpty() && data_dim.getValue() == 2) 305 305 data_jbegin.setValue(0) ; 306 306 307 if (!data_ni.isEmpty() && (data_ni.getValue() <= 0))307 if (!data_ni.isEmpty() && data_ni.getValue() < 0) 308 308 { 309 309 ERROR("CDomain::checkAttributes(void)", … … 319 319 if (data_dim.getValue() == 2) 320 320 { 321 if (!data_nj.isEmpty() && (data_nj.getValue() <= 0))321 if (!data_nj.isEmpty() && data_nj.getValue() < 0) 322 322 { 323 323 ERROR("CDomain::checkAttributes(void)", … … 364 364 { 365 365 if (!data_n_index.isEmpty() || 366 ((data_dim.getValue() == 2) && (!data_j_index.isEmpty())))366 (data_dim.getValue() == 2 && !data_j_index.isEmpty())) 367 367 ERROR("CDomain::checkAttributes(void)", << "data_i_index undefined") ; 368 368 }
Note: See TracChangeset
for help on using the changeset viewer.