Ignore:
Timestamp:
03/23/16 16:11:09 (8 years ago)
Author:
mhnguyen
Message:

Cleaning up some redundant coeds and making some improvements

+) Remove some XIOS Search to make code run faster
+) Remove some commented codes

Test
+) On Curie
+) All tests pass

File:
1 edited

Legend:

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

    r829 r831  
    2626public: 
    2727  typedef boost::unordered_map<int, std::vector<size_t> > GlobalIndexMap; 
    28   typedef std::map<int, std::vector<int> > LocalIndexMap; 
    2928  public: 
    3029    /** Default constructor */ 
     
    3736    virtual void computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient) = 0; 
    3837 
    39 //    // Simple case, global index on client and index on servers 
    40 //    virtual void computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 
    41 //                                           const std::vector<CArray<size_t,1>* >& globalIndexOnServer); 
    42  
    4338    static std::map<int,int> computeConnectedClients(int nbServer, int nbClient, 
    4439                                                     MPI_Comm& clientIntraComm, 
     
    4641 
    4742    const GlobalIndexMap& getGlobalIndexOnServer() const; 
    48 //    const LocalIndexMap& getLocalIndexSendToServer() const; 
    49  
    50   protected: 
    51 //    void defaultComputeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 
    52 //                                          const std::vector<CArray<size_t,1>* >& globalIndexOnServer, 
    53 //                                          const CArray<int,1>* localIndexOnClient = 0); 
    5443 
    5544  protected: 
    5645    //! Global index of data on SERVER, which are calculated by client(s) 
    5746    GlobalIndexMap indexGlobalOnServer_; 
    58  
    59     //! Index of the local data which will be sent to the corresponding server(s) 
    60 //    LocalIndexMap  localIndexSend2Server_; 
    6147 
    6248    //!< Number of clients connected to a server 
Note: See TracChangeset for help on using the changeset viewer.