Ignore:
Timestamp:
05/21/12 17:57:22 (12 years ago)
Author:
ymipsl
Message:
  • Supress lot of shared_ptr
  • instrument code for vampir-trace and timer diagnostic

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/grid.cpp

    r346 r347  
    2525   CGrid::~CGrid(void) 
    2626   {  
    27       this->axis.reset() ; 
    28       this->domain.reset() ; 
     27 //     this->axis.reset() ; 
     28//      this->domain.reset() ; 
    2929       
    3030      for (StdSize i = 0; i < this->storeIndex.size(); i++) 
     
    7373   //--------------------------------------------------------------- 
    7474 
    75    const boost::shared_ptr<CAxis>   CGrid::getRelAxis  (void) const 
     75   const CAxis*   CGrid::getRelAxis  (void) const 
    7676   {  
    7777      return (this->axis );  
     
    8080   //--------------------------------------------------------------- 
    8181 
    82    const boost::shared_ptr<CDomain> CGrid::getRelDomain(void) const 
     82   const CDomain* CGrid::getRelDomain(void) const 
    8383   {  
    8484      return (this->domain );  
     
    158158   { 
    159159      if (this->isChecked) return; 
    160       shared_ptr<CContext> context = CContext::getCurrent() ; 
     160      CContext* context = CContext::getCurrent() ; 
    161161      CContextClient* client=context->client ; 
    162162       
     
    306306   //---------------------------------------------------------------- 
    307307 
    308    boost::shared_ptr<CGrid> 
    309       CGrid::CreateGrid(boost::shared_ptr<CDomain> domain) 
     308   CGrid* CGrid::createGrid(CDomain* domain) 
    310309   { 
    311310      StdString new_id = StdString("__") + domain->getId() + StdString("__") ; 
    312       boost::shared_ptr<CGrid> grid = CGridGroup::get("grid_definition")->createChild(new_id) ; 
     311      CGrid* grid = CGridGroup::get("grid_definition")->createChild(new_id) ; 
    313312      grid->domain_ref.setValue(domain->getId()); 
    314313      return (grid); 
    315314   } 
    316315 
    317    boost::shared_ptr<CGrid> 
    318       CGrid::CreateGrid(boost::shared_ptr<CDomain> domain, boost::shared_ptr<CAxis> axis) 
     316   CGrid* CGrid::createGrid(CDomain* domain, CAxis* axis) 
    319317   { 
    320318      StdString new_id = StdString("__") + domain->getId() + 
    321319                         StdString("_") + axis->getId() + StdString("__") ; 
    322       boost::shared_ptr<CGrid> grid = CGridGroup::get("grid_definition")->createChild(new_id) ; 
     320      CGrid* grid = CGridGroup::get("grid_definition")->createChild(new_id) ; 
    323321      grid->domain_ref.setValue(domain->getId()); 
    324322      grid->axis_ref.setValue(axis->getId()); 
     
    416414  void CGrid::sendIndex(void) 
    417415  { 
    418     shared_ptr<CContext> context = CContext::getCurrent() ; 
     416    CContext* context = CContext::getCurrent() ; 
    419417    CContextClient* client=context->client ; 
    420418     
Note: See TracChangeset for help on using the changeset viewer.