Ignore:
Timestamp:
12/01/21 16:52:24 (3 years ago)
Author:
ymipsl
Message:

tracking memory leak
Elements, views, and connectors are now managed with shared pointer.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/remote_connector.hpp

    r1918 r2267  
    1717  { 
    1818    private: 
    19       CLocalView* srcView_; 
    20       CDistributedView* dstView_; 
     19      shared_ptr<CLocalView> srcView_; 
     20      shared_ptr<CDistributedView> dstView_; 
    2121      map<int, vector<int>> connector_ ; // connector[rank][srcIndex] 
    2222 
     
    2626     
    2727    public: 
    28       CRemoteConnector(CLocalView* srcView, CDistributedView* dstView, MPI_Comm localComm) : srcView_(srcView), dstView_(dstView), localComm_(localComm){} ; 
     28      CRemoteConnector(shared_ptr<CLocalView> srcView, shared_ptr<CDistributedView> dstView, MPI_Comm localComm) : srcView_(srcView), dstView_(dstView), localComm_(localComm){} ; 
    2929      void computeConnector(void) ; 
    3030      map<int, CArray<size_t,1>>& getDistributedGlobalIndex() { return element_ ;}  
Note: See TracChangeset for help on using the changeset viewer.