Ignore:
Timestamp:
06/09/16 11:33:19 (8 years ago)
Author:
mhnguyen
Message:

Various clean up

+) Remove some redundant codes

Test
+) On Curie
+) tests pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/grid_transformation.hpp

    r862 r867  
    1212#include <map> 
    1313#include <vector> 
    14 #include "grid.hpp" 
    1514#include "generic_algorithm_transformation.hpp" 
    1615#include "transformation_enum.hpp" 
     
    2524  This class is an interface for all transformations to interact with the rest of XIOS. 
    2625The class, firstly, tries to get all information relating to requested transformations by retrieving directly from grid. 
    27 Then with all these information, all necessary transformations will be created by generic class \class CGenericAlgorithmTransformation. 
    28 Because there are information exchange among clients to accomplish the transformations (e.g: some index need retrieving from other clients), 
    29 this class uses class \class CTransformationMapping to fulfill this demand. 
     26Secondly, with all these information, all necessary transformations will be created by generic class \class CGenericAlgorithmTransformation. 
     27Then this class accomplishes the transformations by exchanging information among clients (e.g: some index need retrieving index from other clients), 
    3028For each transformation, a new temporary grid source is created. 
    3129For a consequential transformations (e.g: inversing -> zoom -> inversing -> ...), 
     
    6361  void initializeAxisAlgorithms(int axisPositionInGrid); 
    6462  void initializeDomainAlgorithms(int domPositionInGrid); 
    65   void initializeMappingOfOriginalGridSource(); 
     63  void initializeTransformations(); 
    6664 
    6765  void selectAxisAlgo(int elementPositionInGrid, ETranformationType transType, int transformationOrder); 
     
    6967  void selectAlgo(int elementPositionInGrid, ETranformationType transType, int transformationOrder, bool isDomainAlgo); 
    7068  void setUpGrid(int elementPositionInGrid, ETranformationType transType, int nbTransformation); 
    71 //  void computeFinalTransformationMapping(); 
    72 //  void computeTransformationFromOriginalGridSource(const DestinationIndexMap& globaIndexMapFromDestToSource); 
    7369  void computeTransformationMapping(const SourceDestinationIndexMap& globalIndexWeightFromSrcToDest); 
    74 //  void updateFinalGridDestination(); 
    7570  bool isSpecialTransformation(ETranformationType transType); 
    7671 
     
    113108  std::map<int, int> elementPosition2AxisPositionInGrid_, elementPosition2DomainPositionInGrid_; 
    114109 
    115   //! (Grid) Global index of grid source 
    116   DestinationIndexMap currentGridIndexToOriginalGridIndex_; 
    117  
    118110  std::vector<CGrid*> tempGrids_; 
    119111  std::vector<StdString> auxInputs_; 
Note: See TracChangeset for help on using the changeset viewer.