Changeset 1242


Ignore:
Timestamp:
08/11/17 14:41:25 (4 years ago)
Author:
ymipsl
Message:

Bug fix from previous commit. Pb of memory allocation.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/filter/source_filter.cpp

    r1241 r1242  
    3737    { 
    3838      // just make a flat copy 
    39       CArray<double,1> dataTmp(data.copy().dataFirst(),shape(data.numElements())) ; 
    40       packet->data.reference(dataTmp) ; 
     39      CArray<double, N> data_tmp(data.copy()) ; // supress const attribute 
     40      CArray<double,1> dataTmp2(data_tmp.dataFirst(),shape(data.numElements()),neverDeleteData) ; 
     41      packet->data = dataTmp2 ; 
    4142    } 
    4243    // Convert missing values to NaN 
Note: See TracChangeset for help on using the changeset viewer.