- Timestamp:
- 07/15/21 15:03:45 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp
r2125 r2185 901 901 if (i_index(idx) > maxIndex) maxIndex = i_index(idx); 902 902 } 903 ni = maxIndex - minIndex + 1; 904 minIIndex = minIIndex; 903 if (i_index.numElements()) { 904 ni = maxIndex - minIndex + 1; 905 minIIndex = minIndex; 906 } 907 else { 908 ni = 0; 909 } 905 910 } 906 911 … … 963 968 if (j_index(idx) > maxIndex) maxIndex = j_index(idx); 964 969 } 965 nj = maxIndex - minIndex + 1; 966 minJIndex = minIndex; 970 if (j_index.numElements()) { 971 nj = maxIndex - minIndex + 1; 972 minJIndex = minIndex; 973 } 974 else 975 nj = 0; 967 976 } 968 977 // It's the same as checkLocalIDomain. It's not so correct but if jbegin is not the first value of j_index
Note: See TracChangeset
for help on using the changeset viewer.