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/transform_connector.hpp

    r1984 r2267  
    1818      
    1919    public: 
    20       CTransformConnector(CLocalView* srcView, CLocalView* dstView, MPI_Comm localComm)  
     20      CTransformConnector(shared_ptr<CLocalView> srcView, shared_ptr<CLocalView> dstView, MPI_Comm localComm)  
    2121                          : srcView_(srcView), dstView_(dstView), localComm_(localComm) {} 
    2222     
     
    2525 
    2626      MPI_Comm localComm_ ; 
    27       CLocalView* srcView_ ; 
    28       CLocalView* dstView_ ; 
     27      shared_ptr<CLocalView> srcView_ ; 
     28      shared_ptr<CLocalView> dstView_ ; 
    2929      map<int,int> recvRankSize_ ; 
    30       CScattererConnector* scattererConnector_=nullptr ; 
    31       CGathererConnector*  gathererConnector_=nullptr ; 
     30      shared_ptr<CScattererConnector> scattererConnector_ ; 
     31      shared_ptr<CGathererConnector>  gathererConnector_ ; 
    3232    
    3333    public: 
Note: See TracChangeset for help on using the changeset viewer.