Changeset 975


Ignore:
Timestamp:
10/18/16 11:07:36 (5 years ago)
Author:
mhnguyen
Message:

Checking more strictly i_index, j_index of a domain

+) Make sure that i_index, j_index have elements

Test
+) No

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/domain.cpp

    r974 r975  
    737737      if (!i_index.isEmpty()) 
    738738      { 
    739         int minIIndex = i_index(0); 
     739        int minIIndex = (0 < i_index.numElements()) ? i_index(0) : 0; 
    740740        if (ni.isEmpty())  
    741741        {           
     
    797797     if (!j_index.isEmpty()) 
    798798     { 
    799         int minJIndex = j_index(0); 
     799        int minJIndex = (0 < j_index.numElements()) ? j_index(0) : 0; 
    800800        if (nj.isEmpty())  
    801801        { 
Note: See TracChangeset for help on using the changeset viewer.