Changeset 963


Ignore:
Timestamp:
10/04/16 19:01:41 (5 years ago)
Author:
mhnguyen
Message:

Loosen checking condition on reading an unstructured domain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/io/nc4_data_input.cpp

    r887 r963  
    307307      int ni = domain->i_index.numElements(); 
    308308*/ 
    309       int ni     = domain->ni; 
    310       int ibegin = domain->ibegin; 
    311       if (domain->i_index.isEmpty()) 
     309 
     310      int ni     = domain->ni.isEmpty() ? 0 : domain->ni; 
     311      int ibegin = domain->ibegin.isEmpty() ? 0 : domain->ibegin; 
     312 
     313      if (domain->i_index.isEmpty() && (!domain->ni.isEmpty()) ) 
    312314      { 
    313315        domain->i_index.resize(ni) ; 
Note: See TracChangeset for help on using the changeset viewer.