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/generic_algorithm_transformation.hpp

    r624 r630  
    33   \author Ha NGUYEN 
    44   \since 14 May 2015 
    5    \date 09 June 2015 
     5   \date 29 June 2015 
    66 
    77   \brief Interface for all transformation algorithms. 
     
    1111 
    1212#include <map> 
    13 #include <vector> 
     13#include <set> 
    1414#include "array_new.hpp" 
    1515 
     
    2929                                const std::vector<int>& gridDestGlobalDim, 
    3030                                const CArray<size_t,1>& globalIndexGridDestSendToServer, 
    31                                 std::map<size_t, std::set<size_t> >& globaIndexMapFromDestToSource); 
     31                                std::map<size_t, std::vector<std::pair<size_t,double> > >& globaIndexWeightFromDestToSource); 
    3232 
    3333  /*! 
     
    4747    \param[in/out] globalIndexSrcGrid array of global index of source grid (for 2d grid, this array is a line, for 3d, this array represents a plan). It should be preallocated 
    4848  */ 
    49   virtual void computeGlobalIndexFromGlobalIndexElement(int destGlobalIndex, 
     49  virtual void computeGlobalGridIndexFromGlobalIndexElement(int destGlobalIndex, 
    5050                                                        const std::vector<int>& srcGlobalIndex, 
    5151                                                        int elementPositionInGrid, 
     
    5353                                                        const CArray<size_t,1>& globalIndexGridDestSendToServer, 
    5454                                                        CArray<size_t,1>& globalIndexDestGrid, 
    55                                                         std::vector<CArray<size_t,1> >& globalIndexSrcGrid) = 0; 
     55                                                        std::vector<std::vector<size_t> >& globalIndexSrcGrid) = 0; 
    5656 
    5757 
     
    5959protected: 
    6060  std::map<int, std::vector<int> > transformationMapping_; 
     61  std::map<int, std::vector<double> > transformationWeight_; 
    6162}; 
    6263 
Note: See TracChangeset for help on using the changeset viewer.