Changeset 942


Ignore:
Timestamp:
09/22/16 10:59:22 (8 years ago)
Author:
mhnguyen
Message:

Modifying some checking conditions of domain to be loosen

+) Loosen the check with unstructured domain

Test
+) On Curie
+) Work

File:
1 edited

Legend:

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

    r935 r942  
    635635        nj = 1; 
    636636        jbegin = 0; 
    637         if (ni.isEmpty()) ni = i_index.numElements(); 
     637        if (!i_index.isEmpty()) ni = i_index.numElements(); 
    638638        j_index.resize(ni); 
    639639        for(int i=0;i<ni;++i) j_index(i)=0; 
     
    719719      { 
    720720        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()))) 
    725726      { 
    726727        ERROR("CDomain::checkLocalIDomain(void)", 
     
    741742     { 
    742743       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()))) 
    747749      { 
    748750        ERROR("CDomain::checkLocalJDomain(void)", 
Note: See TracChangeset for help on using the changeset viewer.