Ignore:
Timestamp:
07/07/15 10:46:25 (9 years ago)
Author:
mhnguyen
Message:

Implementing interpolation (polynomial) and correct some bugs

+) Implement interpolation (polynomial)
+) Correct some minor bugs relating to memory allocation
+) Clear some redundant codes

Test
+) On Curie
+) test_client and test_complete pass

File:
1 edited

Legend:

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

    r624 r630  
    2424  This class is an interface for all transformations to interact with the rest of XIOS. 
    2525The class, firstly, tries to get all information relating to requested transformations by retrieving directly from grid. 
    26 Then with all these information, all necessary transformations will be be created by generic class \class CGenericAlgorithmTransformation. 
     26Then with all these information, all necessary transformations will be created by generic class \class CGenericAlgorithmTransformation. 
    2727Because there are information exchange among clients to accomplish the transformations (e.g: some index need retrieving from other clients), 
    2828this class uses class \class CTransformationMapping to fulfill this demand. 
     
    4141 
    4242  const std::map<int, CArray<int,1>* >& getLocalIndexToSendFromGridSource() const; 
    43   const std::map<int, std::vector<CArray<int,1>* > >& getLocalIndexToReceiveOnGridDest() const; 
     43  const std::map<int, std::vector<std::vector<std::pair<int,double> > > >& getLocalIndexToReceiveOnGridDest() const; 
    4444 
    4545private: 
     
    5555  void setUpGrid(int elementPositionInGrid, ETranformationType transType); 
    5656  void computeFinalTransformationMapping(); 
    57   void computeTransformationFromOriginalGridSource(const std::map<size_t, std::set<size_t> >& globaIndexMapFromDestToSource); 
     57  void computeTransformationFromOriginalGridSource(const std::map<size_t, std::vector<std::pair<size_t,double> > >& globaIndexMapFromDestToSource); 
    5858  void updateFinalGridDestination(); 
    5959 
     
    8989 
    9090  //! Local index of data to receive on grid destination 
    91   std::map<int, std::vector<CArray<int,1>* > > localIndexToReceiveOnGridDest_; 
     91  std::map<int,std::vector<std::vector<std::pair<int,double> > > > localIndexToReceiveOnGridDest_; 
    9292 
    9393  //! Position of axis and domain in grid 
     
    9797  CArray<size_t,1>* globalIndexOfCurrentGridSource_; 
    9898  CArray<size_t,1>* globalIndexOfOriginalGridSource_; 
     99  CArray<double,1>* weightOfGlobalIndexOfOriginalGridSource_; 
    99100}; 
    100101 
Note: See TracChangeset for help on using the changeset viewer.