Changeset 1111 for XIOS/trunk/src


Ignore:
Timestamp:
05/03/17 14:30:23 (7 years ago)
Author:
ymipsl
Message:

Bug fix on "== operator" method for CArray

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/array_new.hpp

    r1105 r1111  
    307307        size_t nbArr  = array.numElements(); 
    308308        if (nbThis != nbArr) return false; 
    309         for (size_t idx = 0; idx < nbThis; ++idx) 
    310           if ((*this)(idx) != array(idx)) return false; 
    311  
     309        typename Array<T_numtype,N_rank>::const_iterator itx=array.begin(), itxe=array.end(), ity=this->begin() ; 
     310        for(;itx!=itxe;++itx,++ity) if (*itx!=*ity) return false ; 
    312311        return true; 
    313312      } 
Note: See TracChangeset for help on using the changeset viewer.