Ignore:
Timestamp:
01/06/20 14:46:09 (4 years ago)
Author:
ymipsl
Message:

XIOS_COUPLING branch : more comments and cleaning

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.hpp

    r1639 r1847  
    209209         bool isClientChecked; // Verify whether all attributes of domain on the client side are good 
    210210         bool isClientAfterTransformationChecked; 
     211 
     212/** global index of the domain on server side, sent by the clients. This is global index for lon, lat, mask elements (ie non masked elements) 
     213    indGlobs_[rank] -> array of global index received from the client of rank "rank" 
     214    indGlobs[rank](ind) -> global indices of the "ind" element sent. 
     215    Defined only on server side 
     216*/ 
    211217         std::map<int, CArray<int,1> > indGlob_; 
    212          std::map<int, map<int,int> > nbSenders; // Mapping of number of communicating client to a server 
    213  
    214 /** Global index of each client sent to server: map<serverSize, map<serverRank, indexes>> */ 
     218 
     219/** only on client sided : defined the number of clients which participate to a message sent to a server for longitude, lat, area, etc. attributes  
     220    nbSender[nbServers] --> first map is related to the server distribution (ie associated with the contextClient) 
     221    nbSenders[nbServers][server_rank]-> return the number of participants of a message sent to the server of rank "server_rank" 
     222*/ 
     223         std::map<int, map<int,int> > nbSenders;  
     224 
     225/** only on client side : Global index of each client sent to server: map<serverSize, map<serverRank, indexes>>  
     226    indSrv_[nbServers] -->  first map is related to the server distribution (ie associated with the contextClient) 
     227    indSrv_[nbServers][server_rank] -> array of global index sent to the server of rank "server_rank" 
     228    indSrv_[nbServers][server_rank](ind) --> global index on server of the local element "ind" sent (for lon, lat, mask, etc...)  
     229*/ 
    215230         std::map<int, std::unordered_map<int, vector<size_t> > > indSrv_; 
    216          // std::map<CContextClient*, std::map<int, vector<int> > > indWrittenSrv_; // Global written index of each client sent to server 
    217          std::vector<int> indexesToWrite; 
     231          
     232 /** make the mapping between the global index (the key) and the local index 
     233     globalLocalIndexMap_[global_index] --> get the local index 
     234 */         
     235         std::unordered_map<size_t,size_t> globalLocalIndexMap_; 
     236 
     237 
     238/** only on server side : get the rank of each clients which participate to a received message 
     239*   recvClientRanks_[num_receiver] : client rank of the receiver "num_receiver"  
     240*/ 
    218241         std::vector<int> recvClientRanks_; 
     242 
    219243         std::map<int,int> numberWrittenIndexes_, totalNumberWrittenIndexes_, offsetWrittenIndexes_; 
    220244         std::map<int, CArray<int, 1> > compressedIndexToWriteOnServer;      
    221          std::map<int, std::map<int,size_t> > connectedDataSize_; 
    222245         std::map<int, std::vector<int> > connectedServerRank_; 
    223246 
     
    227250         TransMapTypes transformationMap_;          
    228251         bool isUnstructed_; 
    229          std::unordered_map<size_t,size_t> globalLocalIndexMap_; 
     252 
    230253        
    231254       private: 
Note: See TracChangeset for help on using the changeset viewer.