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

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src/node
Files:
45 edited

Legend:

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

    r2267 r2270  
    152152        bool activateFieldWorkflow_done_=false ; 
    153153      private: 
    154         CGenericAlgorithmTransformation* transformationAlgorithm_ = nullptr ; 
    155       public: 
    156         void setTransformationAlgorithm(CGenericAlgorithmTransformation* transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
    157         CGenericAlgorithmTransformation* getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
     154        shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm_ = nullptr ; 
     155      public: 
     156        void setTransformationAlgorithm(shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
     157        shared_ptr<CGenericAlgorithmTransformation> getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
    158158      private: 
    159159        CTransformationPaths transformationPaths_ ; 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/compute_connectivity_domain.cpp

    r2196 r2270  
    5252  } 
    5353 
    54   CGenericAlgorithmTransformation* CComputeConnectivityDomain::createAlgorithm(bool isSource, 
     54  shared_ptr<CGenericAlgorithmTransformation> CComputeConnectivityDomain::createAlgorithm(bool isSource, 
    5555                                                        CGrid* gridDst, CGrid* gridSrc, 
    5656                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/compute_connectivity_domain.hpp

    r2011 r2270  
    6464      static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6565      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    66       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     66      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6767                                                               CGrid* gridDst, CGrid* gridSrc, 
    6868                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.hpp

    r2267 r2270  
    117117 
    118118      private: 
    119         CGenericAlgorithmTransformation* transformationAlgorithm_ = nullptr ; 
    120       public: 
    121         void setTransformationAlgorithm(CGenericAlgorithmTransformation* transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
    122         CGenericAlgorithmTransformation* getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
     119        shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm_ = nullptr ; 
     120      public: 
     121        void setTransformationAlgorithm(shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
     122        shared_ptr<CGenericAlgorithmTransformation> getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
    123123      private: 
    124124        CTransformationPaths transformationPaths_ ; 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/duplicate_scalar_to_axis.cpp

    r2011 r2270  
    4545  } 
    4646   
    47   CGenericAlgorithmTransformation* CDuplicateScalarToAxis::createAlgorithm(bool isSource, 
     47  shared_ptr<CGenericAlgorithmTransformation> CDuplicateScalarToAxis::createAlgorithm(bool isSource, 
    4848                                                        CGrid* gridDst, CGrid* gridSrc, 
    4949                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/duplicate_scalar_to_axis.hpp

    r2011 r2270  
    6464      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6565      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    66       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     66      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6767                                                               CGrid* gridDst, CGrid* gridSrc, 
    6868                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/expand_domain.cpp

    r2196 r2270  
    4949  } 
    5050   
    51   CGenericAlgorithmTransformation* CExpandDomain::createAlgorithm(bool isSource, 
     51  shared_ptr<CGenericAlgorithmTransformation> CExpandDomain::createAlgorithm(bool isSource, 
    5252                                                        CGrid* gridDst, CGrid* gridSrc, 
    5353                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/expand_domain.hpp

    r2011 r2270  
    6464      static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6565      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    66       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     66      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6767                                                               CGrid* gridDst, CGrid* gridSrc, 
    6868                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/extract_axis.cpp

    r2011 r2270  
    7878  } 
    7979 
    80   CGenericAlgorithmTransformation* CExtractAxis::createAlgorithm(bool isSource, 
     80  shared_ptr<CGenericAlgorithmTransformation> CExtractAxis::createAlgorithm(bool isSource, 
    8181                                                        CGrid* gridDst, CGrid* gridSrc, 
    8282                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/extract_axis.hpp

    r2011 r2270  
    6363      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/extract_axis_to_scalar.cpp

    r2011 r2270  
    5959  } 
    6060 
    61   CGenericAlgorithmTransformation* CExtractAxisToScalar::createAlgorithm(bool isSource, 
     61  shared_ptr<CGenericAlgorithmTransformation> CExtractAxisToScalar::createAlgorithm(bool isSource, 
    6262                                                        CGrid* gridDst, CGrid* gridSrc, 
    6363                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/extract_axis_to_scalar.hpp

    r2011 r2270  
    6363      static CTransformation<CScalar>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/extract_domain.cpp

    r2196 r2270  
    7373  } 
    7474 
    75   CGenericAlgorithmTransformation* CExtractDomain::createAlgorithm(bool isSource, 
     75  shared_ptr<CGenericAlgorithmTransformation> CExtractDomain::createAlgorithm(bool isSource, 
    7676                                                        CGrid* gridDst, CGrid* gridSrc, 
    7777                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/extract_domain.hpp

    r2011 r2270  
    6363      static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/extract_domain_to_axis.cpp

    r2255 r2270  
    8888  } 
    8989 
    90   CGenericAlgorithmTransformation* CExtractDomainToAxis::createAlgorithm(bool isSource, 
     90  shared_ptr<CGenericAlgorithmTransformation> CExtractDomainToAxis::createAlgorithm(bool isSource, 
    9191                                                        CGrid* gridDst, CGrid* gridSrc, 
    9292                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/extract_domain_to_axis.hpp

    r2011 r2270  
    6363      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/generate_rectilinear_domain.cpp

    r2196 r2270  
    139139  } 
    140140 
    141   CGenericAlgorithmTransformation* CGenerateRectilinearDomain::createAlgorithm(bool isSource, 
     141  shared_ptr<CGenericAlgorithmTransformation> CGenerateRectilinearDomain::createAlgorithm(bool isSource, 
    142142                                                        CGrid* gridDst, CGrid* gridSrc, 
    143143                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/generate_rectilinear_domain.hpp

    r2011 r2270  
    6363      static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp

    r2267 r2270  
    19011901    bool hasTransform=false ; 
    19021902    bool hasRemainTransform=false ; 
    1903     CGenericAlgorithmTransformation* algo ; 
     1903    shared_ptr<CGenericAlgorithmTransformation> algo ; 
    19041904    int pos ; 
    19051905 
     
    21922192      if (!isSource) 
    21932193      { 
    2194         CGridAlgorithm* gridAlgorithm  ; 
     2194        shared_ptr<CGridAlgorithm> gridAlgorithm  ; 
    21952195        if (isNewGrid) 
    21962196        {  
  • 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        /////////////////////////////////////////// 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/interpolate_axis.cpp

    r2122 r2270  
    136136  } 
    137137 
    138   CGenericAlgorithmTransformation* CInterpolateAxis::createAlgorithm(bool isSource, 
     138  shared_ptr<CGenericAlgorithmTransformation> CInterpolateAxis::createAlgorithm(bool isSource, 
    139139                                                        CGrid* gridDst, CGrid* gridSrc, 
    140140                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/interpolate_axis.hpp

    r2011 r2270  
    6565      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6666      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    67       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     67      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6868                                                               CGrid* gridDst, CGrid* gridSrc, 
    6969                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/interpolate_domain.cpp

    r2196 r2270  
    6969  } 
    7070 
    71   CGenericAlgorithmTransformation* CInterpolateDomain::createAlgorithm(bool isSource, 
     71  shared_ptr<CGenericAlgorithmTransformation> CInterpolateDomain::createAlgorithm(bool isSource, 
    7272                                                        CGrid* gridDst, CGrid* gridSrc, 
    7373                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/interpolate_domain.hpp

    r2011 r2270  
    6363      static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/inverse_axis.cpp

    r2011 r2270  
    4040  {} 
    4141 
    42   CGenericAlgorithmTransformation* CInverseAxis::createAlgorithm(bool isSource, 
     42  shared_ptr<CGenericAlgorithmTransformation> CInverseAxis::createAlgorithm(bool isSource, 
    4343                                                        CGrid* gridDst, CGrid* gridSrc, 
    4444                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/inverse_axis.hpp

    r2011 r2270  
    6262      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6363      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    64       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     64      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6565                                                               CGrid* gridDst, CGrid* gridSrc, 
    6666                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_axis_to_axis.cpp

    r2011 r2270  
    5757  } 
    5858 
    59   CGenericAlgorithmTransformation* CReduceAxisToAxis::createAlgorithm(bool isSource, 
     59  shared_ptr<CGenericAlgorithmTransformation> CReduceAxisToAxis::createAlgorithm(bool isSource, 
    6060                                                        CGrid* gridDst, CGrid* gridSrc, 
    6161                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_axis_to_axis.hpp

    r2011 r2270  
    6262      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6363      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    64       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     64      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6565                                                               CGrid* gridDst, CGrid* gridSrc, 
    6666                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_axis_to_scalar.cpp

    r2011 r2270  
    4242  } 
    4343 
    44   CGenericAlgorithmTransformation* CReduceAxisToScalar::createAlgorithm(bool isSource, 
     44  shared_ptr<CGenericAlgorithmTransformation> CReduceAxisToScalar::createAlgorithm(bool isSource, 
    4545                                                        CGrid* gridDst, CGrid* gridSrc, 
    4646                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_axis_to_scalar.hpp

    r2011 r2270  
    6262      static CTransformation<CScalar>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6363      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    64       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     64      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6565                                                               CGrid* gridDst, CGrid* gridSrc, 
    6666                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_domain_to_axis.cpp

    r2011 r2270  
    8888  } 
    8989 
    90   CGenericAlgorithmTransformation* CReduceDomainToAxis::createAlgorithm(bool isSource, 
     90  shared_ptr<CGenericAlgorithmTransformation> CReduceDomainToAxis::createAlgorithm(bool isSource, 
    9191                                                        CGrid* gridDst, CGrid* gridSrc, 
    9292                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_domain_to_axis.hpp

    r2011 r2270  
    6363      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_domain_to_scalar.cpp

    r2011 r2270  
    4343  } 
    4444 
    45   CGenericAlgorithmTransformation* CReduceDomainToScalar::createAlgorithm(bool isSource, 
     45  shared_ptr<CGenericAlgorithmTransformation> CReduceDomainToScalar::createAlgorithm(bool isSource, 
    4646                                                        CGrid* gridDst, CGrid* gridSrc, 
    4747                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_domain_to_scalar.hpp

    r2011 r2270  
    6363      static CTransformation<CScalar>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_scalar_to_scalar.cpp

    r2011 r2270  
    4242  } 
    4343 
    44   CGenericAlgorithmTransformation* CReduceScalarToScalar::createAlgorithm(bool isSource, 
     44  shared_ptr<CGenericAlgorithmTransformation> CReduceScalarToScalar::createAlgorithm(bool isSource, 
    4545                                                        CGrid* gridDst, CGrid* gridSrc, 
    4646                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reduce_scalar_to_scalar.hpp

    r2011 r2270  
    6262      static CTransformation<CScalar>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6363      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    64       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     64      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6565                                                               CGrid* gridDst, CGrid* gridSrc, 
    6666                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reorder_domain.cpp

    r2196 r2270  
    4242  } 
    4343 
    44   CGenericAlgorithmTransformation* CReorderDomain::createAlgorithm(bool isSource, 
     44  shared_ptr<CGenericAlgorithmTransformation> CReorderDomain::createAlgorithm(bool isSource, 
    4545                                                        CGrid* gridDst, CGrid* gridSrc, 
    4646                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/reorder_domain.hpp

    r2011 r2270  
    6363      static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/scalar.hpp

    r2267 r2270  
    126126        bool activateFieldWorkflow_done_=false ; 
    127127      private: 
    128         CGenericAlgorithmTransformation* transformationAlgorithm_ = nullptr ; 
     128        shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm_ = nullptr ; 
    129129      public: 
    130         void setTransformationAlgorithm(CGenericAlgorithmTransformation* transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
    131         CGenericAlgorithmTransformation* getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
     130        void setTransformationAlgorithm(shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
     131        shared_ptr<CGenericAlgorithmTransformation> getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
    132132      private: 
    133133        CTransformationPaths transformationPaths_ ; 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/temporal_splitting.cpp

    r2011 r2270  
    4646  } 
    4747 
    48   CGenericAlgorithmTransformation* CTemporalSplitting::createAlgorithm(bool isSource, 
     48  shared_ptr<CGenericAlgorithmTransformation> CTemporalSplitting::createAlgorithm(bool isSource, 
    4949                                                        CGrid* gridDst, CGrid* gridSrc, 
    5050                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/temporal_splitting.hpp

    r2011 r2270  
    6363      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/zoom_axis.cpp

    r2011 r2270  
    7878  } 
    7979 
    80   CGenericAlgorithmTransformation* CZoomAxis::createAlgorithm(bool isSource, 
     80  shared_ptr<CGenericAlgorithmTransformation> CZoomAxis::createAlgorithm(bool isSource, 
    8181                                                        CGrid* gridDst, CGrid* gridSrc, 
    8282                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/zoom_axis.hpp

    r2011 r2270  
    6363      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    6464      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/zoom_domain.cpp

    r2196 r2270  
    7373  } 
    7474 
    75   CGenericAlgorithmTransformation* CZoomDomain::createAlgorithm(bool isSource, 
     75  shared_ptr<CGenericAlgorithmTransformation> CZoomDomain::createAlgorithm(bool isSource, 
    7676                                                        CGrid* gridDst, CGrid* gridSrc, 
    7777                                                        int elementPositionInGrid, 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/zoom_domain.hpp

    r2011 r2270  
    6363      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} 
    6464      static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} 
    65       virtual CGenericAlgorithmTransformation* createAlgorithm(bool isSource, 
     65      virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, 
    6666                                                               CGrid* gridDst, CGrid* gridSrc, 
    6767                                                               int elementPositionInGrid, 
Note: See TracChangeset for help on using the changeset viewer.