Changeset 977


Ignore:
Timestamp:
10/18/16 11:09:00 (5 years ago)
Author:
mhnguyen
Message:

Minor improvements: Removing some redundant codes

Location:
XIOS/trunk/src/transformation
Files:
5 edited

Legend:

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

    r933 r977  
    1414#include "grid_transformation_factory_impl.hpp" 
    1515 
    16 #include "sum.hpp" 
     16#include "reduction.hpp" 
    1717 
    1818namespace xios { 
  • XIOS/trunk/src/transformation/axis_algorithm_reduce_domain.cpp

    r938 r977  
    1414#include "grid_transformation_factory_impl.hpp" 
    1515 
    16 #include "sum.hpp" 
     16#include "reduction.hpp" 
    1717 
    1818namespace xios { 
  • XIOS/trunk/src/transformation/generic_algorithm_transformation.cpp

    r933 r977  
    180180  // Find out global index source of transformed element on corresponding process. 
    181181  std::vector<boost::unordered_map<int,std::vector<size_t> > > globalElementIndexOnProc(axisDomainDstOrder.numElements()); 
    182   CClientClientDHTInt::Index2VectorInfoTypeMap globalIndexOfTransformedElementOnProc; 
    183   int axisIndex = 0, domainIndex = 0; 
     182  CClientClientDHTInt::Index2VectorInfoTypeMap globalIndexOfTransformedElementOnProc;   
    184183  for (int idx = 0; idx < axisDomainDstOrder.numElements(); ++idx) 
    185184  { 
     
    192191                                   domainListSrcP[elementPositionInGridSrc2DomainPosition_[idx]], 
    193192                                   transPos, 
    194                                    globalElementIndexOnProc[idx]); 
    195       ++domainIndex; 
     193                                   globalElementIndexOnProc[idx]);       
    196194 
    197195    } 
     
    203201                                 transPos, 
    204202                                 globalElementIndexOnProc[idx]); 
    205       ++axisIndex; 
    206  
    207203    } 
    208204    else //it's a scalar 
  • XIOS/trunk/src/transformation/scalar_algorithm_extract_axis.cpp

    r960 r977  
    1111#include "scalar.hpp" 
    1212#include "extract_axis_to_scalar.hpp" 
    13 #include "sum.hpp" 
    1413#include "grid.hpp" 
    1514#include "grid_transformation_factory_impl.hpp" 
     15 
     16#include "reduction.hpp" 
    1617 
    1718namespace xios { 
  • XIOS/trunk/src/transformation/scalar_algorithm_reduce_axis.cpp

    r933 r977  
    1111#include "scalar.hpp" 
    1212#include "reduce_axis_to_scalar.hpp" 
    13 #include "sum.hpp" 
    1413#include "grid.hpp" 
    1514#include "grid_transformation_factory_impl.hpp" 
     15 
     16#include "reduction.hpp" 
    1617 
    1718namespace xios { 
Note: See TracChangeset for help on using the changeset viewer.