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/data_output.cpp

    r346 r347  
    1414      //---------------------------------------------------------------- 
    1515 
    16       void CDataOutput::writeGrid 
    17          (const boost::shared_ptr<CGrid> grid) 
     16      void CDataOutput::writeGrid(CGrid* grid) 
    1817      { 
    1918         if (grid->domain_ref.isEmpty()) 
     
    3433      //---------------------------------------------------------------- 
    3534 
    36       void CDataOutput::writeFile 
    37          (const boost::shared_ptr<CFile>  file) 
     35      void CDataOutput::writeFile(CFile*  file) 
    3836      { 
    3937         this->writeFile_(file); 
     
    5250      //---------------------------------------------------------------- 
    5351 
    54       void CDataOutput::writeGrid 
    55          (const boost::shared_ptr<CDomain> domain, 
    56           const boost::shared_ptr<CAxis> axis) 
     52      void CDataOutput::writeGrid(CDomain* domain,CAxis* axis) 
    5753      { 
    5854         this->writeDomain_(domain); 
     
    6258      //---------------------------------------------------------------- 
    6359 
    64       void CDataOutput::writeGrid 
    65          (const boost::shared_ptr<CDomain> domain) 
     60      void CDataOutput::writeGrid(CDomain* domain) 
    6661      { 
    6762         this->writeDomain_(domain); 
     
    7065      //---------------------------------------------------------------- 
    7166 
    72       void CDataOutput::writeField 
    73          (const boost::shared_ptr<CField> field) 
     67      void CDataOutput::writeField(CField* field) 
    7468      { 
    75          boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
     69         CContext* context = CContext::getCurrent() ; 
    7670         boost::shared_ptr<CCalendar> calendar = context->getCalendar(); 
    7771          
     
    8276      //---------------------------------------------------------------- 
    8377 
    84       void CDataOutput::writeFieldGrid 
    85          (const boost::shared_ptr<CField> field) 
     78      void CDataOutput::writeFieldGrid(CField* field) 
    8679      { 
    8780         this->writeGrid(field->getRelGrid()); 
     
    9083      //---------------------------------------------------------------- 
    9184       
    92       void CDataOutput::writeFieldData(const boost::shared_ptr<CField> field) 
     85      void CDataOutput::writeFieldData(CField* field) 
    9386      { 
    94          boost::shared_ptr<CGrid> grid = CGrid::get(field->grid_ref.getValue()); 
    95          boost::shared_ptr<CDomain> domain = CDomain::get(grid->domain_ref.getValue()); 
     87         CGrid* grid = CGrid::get(field->grid_ref.getValue()); 
     88         CDomain* domain = CDomain::get(grid->domain_ref.getValue()); 
    9689             
    9790//         if (domain->isEmpty()) return; 
Note: See TracChangeset for help on using the changeset viewer.