Ignore:
Timestamp:
12/07/21 12:07:33 (3 years ago)
Author:
ymipsl
Message:

Tracking memory leak :
Tranformations and algorithms are now managed with shared_ptr.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.hpp

    r2267 r2270  
    222222                                                                                  double defaultValue, CGrid*& newGrid, bool graphEnabled=false, CField* field=0) ; 
    223223      private: 
    224         CGridAlgorithm* gridAlgorithm_ = nullptr ; 
    225       public: 
    226         void setGridAlgorithm(CGridAlgorithm* gridAlgorithm) {gridAlgorithm_ = gridAlgorithm;} 
    227         CGridAlgorithm* getGridAlgorithm(void) { return gridAlgorithm_ ;} 
     224        shared_ptr<CGridAlgorithm> gridAlgorithm_ = nullptr ; 
     225      public: 
     226        void setGridAlgorithm(shared_ptr<CGridAlgorithm> gridAlgorithm) {gridAlgorithm_ = gridAlgorithm;} 
     227        shared_ptr<CGridAlgorithm> getGridAlgorithm(void) { return gridAlgorithm_ ;} 
    228228        
    229229        /////////////////////////////////////////// 
Note: See TracChangeset for help on using the changeset viewer.