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/field_impl.hpp

    r346 r347  
    77#include "context.hpp" 
    88#include "grid.hpp" 
     9#include "timer.hpp" 
    910 
    1011 
     
    1415   void CField::setData(const ARRAY(double, N) _data) 
    1516   { 
    16      const std::vector<boost::shared_ptr<CField> > & refField=getAllReference(); 
    17      std::vector<boost::shared_ptr<CField> >::const_iterator  it = refField.begin(), end = refField.end(); 
     17     const std::vector<CField*>& refField=getAllReference(); 
     18     std::vector<CField*>::const_iterator  it = refField.begin(), end = refField.end(); 
    1819      
    1920     for (; it != end; it++) (*it)->updateData(_data) ; 
     
    2324      bool CField::updateData(const ARRAY(double, N) _data) 
    2425   {         
    25       shared_ptr<CContext> context=CContext::getCurrent(); 
     26      CContext* context=CContext::getCurrent(); 
    2627      const CDate & currDate = context->getCalendar()->getCurrentDate(); 
    2728      const CDate opeDate      = *last_operation + freq_operation; 
     
    5253         *last_Write = writeDate; 
    5354         info(50) << "(*last_Write = currDate) : " << *last_Write << " = " << currDate  << std::endl; 
     55         CTimer::get("XIOS Send Data").resume() ; 
    5456         sendUpdateData() ; 
     57         CTimer::get("XIOS Send Data").suspend() ; 
    5558         return (true);         
    5659      } 
Note: See TracChangeset for help on using the changeset viewer.