Ignore:
Timestamp:
03/10/15 10:49:09 (9 years ago)
Author:
mhnguyen
Message:

Implementing discovering algorithm of server index

+) Implement the algorithm with only one level
+) Remove some redundant functions, corrects some interface

Test
+) On Curie
+) Test passed and results are correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/client_server_mapping.cpp

    r567 r568  
    2121 
    2222void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 
     23                                                     const CArray<int,1>& localIndexOnClient) 
     24{ 
     25//  defaultComputeServerIndexMapping(globalIndexOnClient, globalIndexServer); 
     26} 
     27 
     28 
     29void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 
    2330                                                     const std::vector<CArray<size_t,1>* >& globalIndexServer) 
    2431{ 
     
    2633} 
    2734 
    28 void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 
    29                                                      const CArray<int,1>& localIndexOnClient, 
    30                                                      const std::vector<CArray<size_t,1>* >& globalIndexOnServer) 
    31 { 
    32   defaultComputeServerIndexMapping(globalIndexOnClient, globalIndexOnServer, &localIndexOnClient); 
    33 } 
     35//void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 
     36//                                                     const CArray<int,1>& localIndexOnClient, 
     37//                                                     const std::vector<CArray<size_t,1>* >& globalIndexOfServer) 
     38//{ 
     39//  defaultComputeServerIndexMapping(globalIndexOnClient, globalIndexOfServer, &localIndexOnClient); 
     40//} 
    3441 
    3542/*! 
     
    6875  } 
    6976} 
    70  
    7177 
    7278/*! 
Note: See TracChangeset for help on using the changeset viewer.