Changeset 831 for XIOS/trunk/src/client_server_mapping.hpp
- Timestamp:
- 03/23/16 16:11:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/client_server_mapping.hpp
r829 r831 26 26 public: 27 27 typedef boost::unordered_map<int, std::vector<size_t> > GlobalIndexMap; 28 typedef std::map<int, std::vector<int> > LocalIndexMap;29 28 public: 30 29 /** Default constructor */ … … 37 36 virtual void computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient) = 0; 38 37 39 // // Simple case, global index on client and index on servers40 // virtual void computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient,41 // const std::vector<CArray<size_t,1>* >& globalIndexOnServer);42 43 38 static std::map<int,int> computeConnectedClients(int nbServer, int nbClient, 44 39 MPI_Comm& clientIntraComm, … … 46 41 47 42 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);54 43 55 44 protected: 56 45 //! Global index of data on SERVER, which are calculated by client(s) 57 46 GlobalIndexMap indexGlobalOnServer_; 58 59 //! Index of the local data which will be sent to the corresponding server(s)60 // LocalIndexMap localIndexSend2Server_;61 47 62 48 //!< Number of clients connected to a server
Note: See TracChangeset
for help on using the changeset viewer.