Ignore:
Timestamp:
07/24/15 16:40:06 (9 years ago)
Author:
rlacroix
Message:

Distributions and transformations: Avoid using heap allocations.

File:
1 edited

Legend:

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

    r623 r653  
    3030  public: 
    3131    /** Default constructor */ 
    32     CDistributionClient(int rank, int dims, CArray<size_t,1>* globalIndex = 0); 
     32    CDistributionClient(int rank, int dims, const CArray<size_t,1>& globalIndex = CArray<size_t,1>()); 
    3333    CDistributionClient(int rank, CGrid* grid); 
    3434 
     
    7272  private: 
    7373    //!< LocalData index on client 
    74     CArray<size_t,1>* globalDataSendToServer_; 
    75     CArray<int,1>* localDataIndex_; 
    76     CArray<int,1>* localDataIndexSendToServer_; 
    77     CArray<int,1>* localMaskIndex_; 
     74    CArray<size_t,1> globalDataSendToServer_; 
     75    CArray<int,1> localDataIndex_; 
     76    CArray<int,1> localDataIndexSendToServer_; 
     77    CArray<int,1> localMaskIndex_; 
    7878 
    7979  private: 
Note: See TracChangeset for help on using the changeset viewer.