Ignore:
Timestamp:
10/24/16 16:16:40 (8 years ago)
Author:
mhnguyen
Message:

Minor improvements:

+) Change some type of variable to avoid some error-prone inputs
+) Change some class name to make it meaningful

Test
+) On Curie
+) Okie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c_attr/icreduce_axis_to_scalar_attr.cpp

    r891 r980  
    2323    if (!cstr2string(operation, operation_size, operation_str)) return; 
    2424    CTimer::get("XIOS").resume(); 
    25     reduce_axis_to_scalar_hdl->operation.setValue(operation_str); 
     25    reduce_axis_to_scalar_hdl->operation.fromString(operation_str); 
    2626    CTimer::get("XIOS").suspend(); 
    2727  } 
     
    3030  { 
    3131    CTimer::get("XIOS").resume(); 
    32     if (!string_copy(reduce_axis_to_scalar_hdl->operation.getInheritedValue(), operation, operation_size)) 
     32    if (!string_copy(reduce_axis_to_scalar_hdl->operation.getInheritedStringValue(), operation, operation_size)) 
    3333      ERROR("void cxios_get_reduce_axis_to_scalar_operation(reduce_axis_to_scalar_Ptr reduce_axis_to_scalar_hdl, char * operation, int operation_size)", << "Input string is too short"); 
    3434    CTimer::get("XIOS").suspend(); 
Note: See TracChangeset for help on using the changeset viewer.