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/transformation/grid_transformation.hpp

    r632 r653  
    4040  void computeAll(); 
    4141 
    42   const std::map<int, CArray<int,1>* >& getLocalIndexToSendFromGridSource() const; 
     42  const std::map<int, CArray<int,1> >& getLocalIndexToSendFromGridSource() const; 
    4343  const std::map<int, std::vector<std::vector<std::pair<int,double> > > >& getLocalIndexToReceiveOnGridDest() const; 
    4444  CGrid* getGridSource() {return gridSource_; } 
     
    9090 
    9191  //! Local index of data to send from grid source 
    92   std::map<int, CArray<int,1>* > localIndexToSendFromGridSource_; 
     92  std::map<int, CArray<int,1> > localIndexToSendFromGridSource_; 
    9393 
    9494  //! Local index of data to receive on grid destination 
     
    9999 
    100100  //! (Grid) Global index of grid source 
    101   CArray<size_t,1>* globalIndexOfCurrentGridSource_; 
    102   CArray<size_t,1>* globalIndexOfOriginalGridSource_; 
    103   CArray<double,1>* weightOfGlobalIndexOfOriginalGridSource_; 
     101  CArray<size_t,1> globalIndexOfCurrentGridSource_; 
     102  CArray<size_t,1> globalIndexOfOriginalGridSource_; 
     103  CArray<double,1> weightOfGlobalIndexOfOriginalGridSource_; 
    104104}; 
    105105 
Note: See TracChangeset for help on using the changeset viewer.