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

    r1954 r2267  
    1616  { 
    1717    public: 
    18     CLocalView(CLocalElement* parent, CElementView::type type, const CArray<int,1>& indexView) ; 
    19     CLocalView(CLocalElement* parent, CElementView::type type, const CArray<bool,1>& maskView) ; 
     18    CLocalView(shared_ptr<CLocalElement> parent, CElementView::type type, const CArray<int,1>& indexView) ; 
     19    CLocalView(shared_ptr<CLocalElement> parent, CElementView::type type, const CArray<bool,1>& maskView) ; 
    2020 
    2121    const CArray<int,1>& getIndex(void) { return index_ ;} 
     
    3838    }     
    3939 
    40     void getGlobalIndex(vector<size_t>& globalIndex, size_t sliceIndex, size_t* sliceSize, CLocalView** localView, int pos) 
     40    void getGlobalIndex(vector<size_t>& globalIndex, size_t sliceIndex, size_t* sliceSize, shared_ptr<CLocalView>* localView, int pos) 
    4141    { 
    4242      if (pos==0) 
     
    5656    int getLocalSize(void) {return localSize_ ;} 
    5757    int getSize(void) {return size_;}  
    58     void sendRemoteElement(CRemoteConnector& connector, CContextClient* client, CEventClient& event, const CMessage& messageHeader) ; 
     58    void sendRemoteElement(shared_ptr<CRemoteConnector> connector, CContextClient* client, CEventClient& event, const CMessage& messageHeader) ; 
    5959    
    6060    CArray<size_t,1>& globalIndex_ ; 
Note: See TracChangeset for help on using the changeset viewer.