Ignore:
Timestamp:
05/21/12 17:57:22 (9 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/interface/c_attr/icgrid_attr.cpp

    r345 r347  
    1010#include "group_template_impl.hpp" 
    1111#include "icutil.hpp" 
     12#include "timer.hpp" 
    1213 
    1314extern "C" 
     
    1920    std::string axis_ref_str; 
    2021    if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; 
     22     CTimer::get("XIOS").resume(); 
    2123    grid_hdl->axis_ref.setValue(axis_ref_str); 
    2224    grid_hdl->sendAttributToServer(grid_hdl->axis_ref); 
     25     CTimer::get("XIOS").suspend(); 
    2326  } 
    2427   
    2528  void cxios_get_grid_axis_ref(grid_Ptr grid_hdl, char * axis_ref, int axis_ref_size) 
    2629  { 
     30     CTimer::get("XIOS").resume(); 
    2731    if(!string_copy(grid_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) 
    2832      ERROR("void cxios_get_grid_axis_ref(grid_Ptr grid_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); 
     33     CTimer::get("XIOS").suspend(); 
    2934  } 
    3035   
     
    3439    std::string description_str; 
    3540    if(!cstr2string(description, description_size, description_str)) return; 
     41     CTimer::get("XIOS").resume(); 
    3642    grid_hdl->description.setValue(description_str); 
    3743    grid_hdl->sendAttributToServer(grid_hdl->description); 
     44     CTimer::get("XIOS").suspend(); 
    3845  } 
    3946   
    4047  void cxios_get_grid_description(grid_Ptr grid_hdl, char * description, int description_size) 
    4148  { 
     49     CTimer::get("XIOS").resume(); 
    4250    if(!string_copy(grid_hdl->description.getValue(),description , description_size)) 
    4351      ERROR("void cxios_get_grid_description(grid_Ptr grid_hdl, char * description, int description_size)", <<"Input string is to short"); 
     52     CTimer::get("XIOS").suspend(); 
    4453  } 
    4554   
     
    4958    std::string domain_ref_str; 
    5059    if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; 
     60     CTimer::get("XIOS").resume(); 
    5161    grid_hdl->domain_ref.setValue(domain_ref_str); 
    5262    grid_hdl->sendAttributToServer(grid_hdl->domain_ref); 
     63     CTimer::get("XIOS").suspend(); 
    5364  } 
    5465   
    5566  void cxios_get_grid_domain_ref(grid_Ptr grid_hdl, char * domain_ref, int domain_ref_size) 
    5667  { 
     68     CTimer::get("XIOS").resume(); 
    5769    if(!string_copy(grid_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) 
    5870      ERROR("void cxios_get_grid_domain_ref(grid_Ptr grid_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); 
     71     CTimer::get("XIOS").suspend(); 
    5972  } 
    6073   
     
    6477    std::string name_str; 
    6578    if(!cstr2string(name, name_size, name_str)) return; 
     79     CTimer::get("XIOS").resume(); 
    6680    grid_hdl->name.setValue(name_str); 
    6781    grid_hdl->sendAttributToServer(grid_hdl->name); 
     82     CTimer::get("XIOS").suspend(); 
    6883  } 
    6984   
    7085  void cxios_get_grid_name(grid_Ptr grid_hdl, char * name, int name_size) 
    7186  { 
     87     CTimer::get("XIOS").resume(); 
    7288    if(!string_copy(grid_hdl->name.getValue(),name , name_size)) 
    7389      ERROR("void cxios_get_grid_name(grid_Ptr grid_hdl, char * name, int name_size)", <<"Input string is to short"); 
     90     CTimer::get("XIOS").suspend(); 
    7491  } 
    7592   
Note: See TracChangeset for help on using the changeset viewer.