Changeset 1290


Ignore:
Timestamp:
10/04/17 23:07:22 (4 years ago)
Author:
ymipsl
Message:

Bug fix when comparing Array (operator ==), in case of both null size.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/array_new.hpp

    r1158 r1290  
    307307        size_t nbArr  = array.numElements(); 
    308308        if (nbThis != nbArr) return false; 
     309        if (nbThis==0 && nbArr==0) return true; 
    309310        typename Array<T_numtype,N_rank>::const_iterator itx=array.begin(), itxe=array.end(), ity=this->begin() ; 
    310311        for(;itx!=itxe;++itx,++ity) if (*itx!=*ity) return false ; 
Note: See TracChangeset for help on using the changeset viewer.