Ignore:
Timestamp:
04/01/15 17:52:58 (9 years ago)
Author:
mhnguyen
Message:

Modifying some functions to make sure zoom working even with grid not distributed

+) Change some code in sendIndex to make sure non-distributed grid work with zoom

Test
+) On Curie
+) test_client: passed and results are same like on the branchs
+) test_complete: there is a difference of output because of zoom index offset

File:
1 edited

Legend:

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

    r584 r585  
    3434    /** Default constructor */ 
    3535    CClientServerMappingDistributed(const boost::unordered_map<size_t,int>& globalIndexOfServer, 
    36                                     const MPI_Comm& clientIntraComm); 
     36                                    const MPI_Comm& clientIntraComm, bool isDataDistributed = true); 
    3737 
    3838    virtual void computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClientSendToServer); 
     
    118118    //! Mapping client rank and the begining position of receiving buffer for message of server index from this client 
    119119    std::map<int, int*> indexServerBuffBegin_; 
     120 
     121    //! Flag to specify whether data is distributed or not 
     122    bool isDataDistributed_; 
    120123}; 
    121124 
Note: See TracChangeset for help on using the changeset viewer.