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/node/reduce_axis_to_scalar.cpp

    r891 r980  
    3939  void CReduceAxisToScalar::checkValid(CScalar* scalarDst) 
    4040  { 
    41 //    int axisIBegin, axisNi, axisGlobalSize; 
    42 //    int begin, end, n; 
    43 // 
    44 //    axisIBegin = axisDest->begin.getValue(); 
    45 //    axisNi     = axisDest->n.getValue(); 
    46 //    axisGlobalSize   = axisDest->n_glo.getValue(); 
    47 // 
    48 //    begin = (this->begin.isEmpty()) ?  0 : this->begin.getValue(); 
    49 //    n     = (this->n.isEmpty()) ?  axisGlobalSize : this->n.getValue(); 
    50 //    end   = begin+n-1; 
    51 // 
    52 //    if (begin < 0 || begin > axisGlobalSize - 1 || end < 0 || end > axisGlobalSize - 1 
    53 //        || n < 1 || n > axisGlobalSize || begin > end) 
    54 //      ERROR("CReduceAxisToScalar::checkValid(CAxis* axisDest)", 
    55 //            << "One or more attributes among 'begin' (" << begin << "), 'end' (" << end << "), 'n' (" << n << ") " 
    56 //            << "of axis transformation [ id = '" << axisDest->getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] are not well specified"); 
    57 // 
    58 //    this->begin.setValue(begin); 
    59 //    this->n.setValue(n); 
    60  
    6141  } 
    6242 
Note: See TracChangeset for help on using the changeset viewer.