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

    r1955 r2267  
    1515    public: 
    1616 
    17       CGridMaskConnector(vector<CLocalView*>& views) : views_(views) {} 
     17      CGridMaskConnector(vector<shared_ptr<CLocalView>>& views) : views_(views) {} 
    1818      void computeConnector(CArray<bool,1>& mask) ; 
    1919      
     
    2222     
    2323    private: 
    24       vector<CLocalView*> views_ ; 
     24      vector<shared_ptr<CLocalView>> views_ ; 
    2525      vector<CArray<bool,1>> elementsMask_ ;  
    2626 
Note: See TracChangeset for help on using the changeset viewer.