Changeset 2268 for XIOS/dev


Ignore:
Timestamp:
12/02/21 10:14:45 (3 years ago)
Author:
jderouillat
Message:

Fix in tracking memory leak, a shared_ptr declaration was missing defining a CLocalElement in CAxisAlgorithmInterpolateCoordinate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_interpolate_coordinate.cpp

    r2267 r2268  
    120120     
    121121 
    122     CLocalElement axisSourceGlo(CContext::getCurrent()->getIntraCommRank(), ngloSrc_, globalIndex) ; 
    123     axisSourceGlo.addFullView() ;  
    124  
    125     this->computeAlgorithm(axisSource->getLocalView(CElementView::WORKFLOW), axisSourceGlo.getView(CElementView::FULL)) ; 
     122    shared_ptr<CLocalElement> axisSourceGlo = make_shared<CLocalElement>(CContext::getCurrent()->getIntraCommRank(), ngloSrc_, globalIndex) ; 
     123    axisSourceGlo->addFullView() ;  
     124 
     125    this->computeAlgorithm(axisSource->getLocalView(CElementView::WORKFLOW), axisSourceGlo->getView(CElementView::FULL)) ; 
    126126 
    127127    if (!hasCoordinateSrc_) 
Note: See TracChangeset for help on using the changeset viewer.