Ignore:
Timestamp:
08/24/15 14:53:36 (9 years ago)
Author:
mhnguyen
Message:

Implementing some code factoring

+) Replace some slow searching function by faster ones

Test
+) On Curie
+) test_client and test_complete are correct

File:
1 edited

Legend:

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

    r631 r668  
    2929                                const std::vector<int>& gridDestGlobalDim, 
    3030                                const std::vector<int>& gridSrcGlobalDim, 
    31                                 const CArray<size_t,1>& globalIndexGridDestSendToServer, 
     31                                const std::vector<size_t>& globalIndexGridDestSendToServer, 
    3232                                std::map<size_t, std::vector<std::pair<size_t,double> > >& globaIndexWeightFromDestToSource); 
    3333 
     
    4444    \param[in] elementPositionInGrid position of the element in the grid (for example: a grid with one domain and one axis, position of domain is 1, position of axis is 2) 
    4545    \param[in] gridDestGlobalDim dimension size of destination grid (it should share the same size for all dimension, maybe except the element on which transformation is performed) 
    46     \param[in] globalIndexGridDestSendToServer global index of destination grid which are to be sent to server(s) 
     46    \param[in] globalIndexGridDestSendToServer global index of destination grid which are to be sent to server(s), this array is already acsending sorted 
    4747    \param[in/out] globalIndexDestGrid array of global index (for 2d grid, this array maybe a line, for 3d, this array may represent a plan). It should be preallocated 
    4848    \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 
     
    5353                                                        const std::vector<int>& gridDestGlobalDim, 
    5454                                                        const std::vector<int>& gridSrcGlobalDim, 
    55                                                         const CArray<size_t,1>& globalIndexGridDestSendToServer, 
     55                                                        const std::vector<size_t>& globalIndexGridDestSendToServer, 
    5656                                                        CArray<size_t,1>& globalIndexDestGrid, 
    5757                                                        std::vector<std::vector<size_t> >& globalIndexSrcGrid) = 0; 
Note: See TracChangeset for help on using the changeset viewer.