Ignore:
Timestamp:
09/22/16 10:59:07 (6 years ago)
Author:
mhnguyen
Message:

Modifying reduce_axis_to_domain attribute to prevent error-prone

+) Change attribute from string to enum
+) Remove some redundant codes

Test
+) Ok

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/axis_algorithm_reduce_domain.cpp

    r933 r938  
    4848  algo->checkValid(axisDestination, domainSource); 
    4949  StdString op = algo->operation; 
    50   StdString direction = algo->direction; 
    51   dir_ = (0 == direction.compare("i")) ? iDir : jDir; 
     50  dir_ = (CReduceDomainToAxis::direction_attr::iDir == algo->direction)  ? iDir : jDir; 
    5251  reduction_ = CReductionAlgorithm::createOperation(CReductionAlgorithm::ReductionOperations[op]); 
    5352} 
Note: See TracChangeset for help on using the changeset viewer.