Changeset 942
- Timestamp:
- 09/22/16 10:59:22 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/domain.cpp
r935 r942 635 635 nj = 1; 636 636 jbegin = 0; 637 if ( ni.isEmpty()) ni = i_index.numElements();637 if (!i_index.isEmpty()) ni = i_index.numElements(); 638 638 j_index.resize(ni); 639 639 for(int i=0;i<ni;++i) j_index(i)=0; … … 719 719 { 720 720 if (ibegin.isEmpty()) ibegin = i_index(0); 721 } 722 723 if (ni.getValue() < 0 || ibegin.getValue() < 0 || 724 (ibegin.getValue() + ni.getValue()) > ni_glo.getValue()) 721 if (ni.isEmpty()) ni = i_index.numElements(); 722 } 723 724 if ((ni.getValue() < 0 || ibegin.getValue() < 0) || 725 ((type_attr::unstructured != type) && ((ibegin.getValue() + ni.getValue()) > ni_glo.getValue()))) 725 726 { 726 727 ERROR("CDomain::checkLocalIDomain(void)", … … 741 742 { 742 743 if (jbegin.isEmpty()) jbegin = j_index(0); 743 } 744 745 if (nj.getValue() < 0 || jbegin.getValue() < 0 || 746 (jbegin.getValue() + nj.getValue()) > nj_glo.getValue()) 744 if (nj.isEmpty()) nj = j_index.numElements(); 745 } 746 747 if ((nj.getValue() < 0 || jbegin.getValue() < 0) || 748 ((type_attr::unstructured != type) && ((jbegin.getValue() + nj.getValue()) > nj_glo.getValue()))) 747 749 { 748 750 ERROR("CDomain::checkLocalJDomain(void)",
Note: See TracChangeset
for help on using the changeset viewer.