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/interface/c_attr/icaxis_attr.cpp

    r345 r347  
    1010#include "group_template_impl.hpp" 
    1111#include "icutil.hpp" 
     12#include "timer.hpp" 
    1213 
    1314extern "C" 
     
    1920    std::string long_name_str; 
    2021    if(!cstr2string(long_name, long_name_size, long_name_str)) return; 
     22     CTimer::get("XIOS").resume(); 
    2123    axis_hdl->long_name.setValue(long_name_str); 
    2224    axis_hdl->sendAttributToServer(axis_hdl->long_name); 
     25     CTimer::get("XIOS").suspend(); 
    2326  } 
    2427   
    2528  void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size) 
    2629  { 
     30     CTimer::get("XIOS").resume(); 
    2731    if(!string_copy(axis_hdl->long_name.getValue(),long_name , long_name_size)) 
    2832      ERROR("void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); 
     33     CTimer::get("XIOS").suspend(); 
    2934  } 
    3035   
     
    3439    std::string name_str; 
    3540    if(!cstr2string(name, name_size, name_str)) return; 
     41     CTimer::get("XIOS").resume(); 
    3642    axis_hdl->name.setValue(name_str); 
    3743    axis_hdl->sendAttributToServer(axis_hdl->name); 
     44     CTimer::get("XIOS").suspend(); 
    3845  } 
    3946   
    4047  void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size) 
    4148  { 
     49     CTimer::get("XIOS").resume(); 
    4250    if(!string_copy(axis_hdl->name.getValue(),name , name_size)) 
    4351      ERROR("void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size)", <<"Input string is to short"); 
     52     CTimer::get("XIOS").suspend(); 
    4453  } 
    4554   
     
    4756  void cxios_set_axis_size(axis_Ptr axis_hdl, int size) 
    4857  { 
     58     CTimer::get("XIOS").resume(); 
    4959    axis_hdl->size.setValue(size); 
    5060    axis_hdl->sendAttributToServer(axis_hdl->size); 
     61     CTimer::get("XIOS").suspend(); 
    5162  } 
    5263   
     
    6172    std::string standard_name_str; 
    6273    if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; 
     74     CTimer::get("XIOS").resume(); 
    6375    axis_hdl->standard_name.setValue(standard_name_str); 
    6476    axis_hdl->sendAttributToServer(axis_hdl->standard_name); 
     77     CTimer::get("XIOS").suspend(); 
    6578  } 
    6679   
    6780  void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size) 
    6881  { 
     82     CTimer::get("XIOS").resume(); 
    6983    if(!string_copy(axis_hdl->standard_name.getValue(),standard_name , standard_name_size)) 
    7084      ERROR("void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); 
     85     CTimer::get("XIOS").suspend(); 
    7186  } 
    7287   
     
    7691    std::string unit_str; 
    7792    if(!cstr2string(unit, unit_size, unit_str)) return; 
     93     CTimer::get("XIOS").resume(); 
    7894    axis_hdl->unit.setValue(unit_str); 
    7995    axis_hdl->sendAttributToServer(axis_hdl->unit); 
     96     CTimer::get("XIOS").suspend(); 
    8097  } 
    8198   
    8299  void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size) 
    83100  { 
     101     CTimer::get("XIOS").resume(); 
    84102    if(!string_copy(axis_hdl->unit.getValue(),unit , unit_size)) 
    85103      ERROR("void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size)", <<"Input string is to short"); 
     104     CTimer::get("XIOS").suspend(); 
    86105  } 
    87106   
     
    89108  void cxios_set_axis_value(axis_Ptr axis_hdl, double* value, int extent1) 
    90109  { 
     110     CTimer::get("XIOS").resume(); 
    91111    ARRAY(double,1) array_tmp(new CArray<double,1>(boost::extents[extent1])); 
    92112    std::copy(value, &(value[array_tmp->num_elements()]), array_tmp->data()); 
     
    99119    if (!array_copy(axis_hdl->value.getValue(), value, extent1)) 
    100120     ERROR("void cxios_set_axis_value(axis_Ptr axis_hdl, double* value, int extent1)",<<"Output array size is not conform to array size attribute") ; 
     121     CTimer::get("XIOS").suspend(); 
    101122  } 
    102123   
Note: See TracChangeset for help on using the changeset viewer.