Changeset 1113


Ignore:
Timestamp:
05/03/17 15:02:15 (5 years ago)
Author:
ymipsl
Message:

Small bug fix in expand algorithm.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/domain_algorithm_expand.cpp

    r1083 r1113  
    181181  { 
    182182    CArray<double,1> lon = lon_src(Range(0,niSrc-1)); 
    183     CArray<double,1> lat = lat_src(Range(0,lat_src.numElements()-1,niSrc)); 
     183    CArray<double,1> lat = lat_src(Range(0,lat_src.numElements()-niSrc,niSrc)); 
    184184    CArray<double,2>& bounds_lon_src = domainSource->bounds_lon_1d; 
    185185    CArray<double,2>& bounds_lat_src = domainSource->bounds_lat_1d; 
     
    249249  i_index_dst.resize(newNbLocalDst); 
    250250  j_index_dst.resize(newNbLocalDst); 
    251   CArray<int,1> data_i_index_dst_full(newNbLocalDst, -1); 
    252   CArray<int,1> data_j_index_dst_full(newNbLocalDst, -1); 
     251  CArray<int,1> data_i_index_dst_full(newNbLocalDst); 
     252  CArray<int,1> data_j_index_dst_full(newNbLocalDst); 
    253253 
    254254  domainDestination->lonvalue_client.resizeAndPreserve(newNbLocalDst);   
     
    443443     domainDestination->lonvalue_1d = lon_dst(Range(0,niDst-1)); 
    444444     domainDestination->latvalue_1d.resize(njDst); 
    445      domainDestination->latvalue_1d = lat_dst(Range(0,lat_dst.numElements()-1,niDst)); 
     445     domainDestination->latvalue_1d = lat_dst(Range(0,lat_dst.numElements()-niDst,niDst)); 
    446446  } 
    447447  else // It should be curvilinear 
Note: See TracChangeset for help on using the changeset viewer.