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

Implementing a grid formed by only one axis or group of axis

+) Add several new attributes to axis. From now on, each axis can be distributed on client side
+) Modify mask of grid to make it more flexible to different dimension
+) Fix some bugs relating to calculation of local data index on client
+) Clean some redundant codes

Test
+) On Curie, only test_new_features.f90
+) Test cases:

  • Grid composed of: 1 domain and 1 axis, 3 axis, 1 axis
  • Mode: Attached and connected
  • No of client-server: 6-2(Connected), 2 (Attached)

+) All tests passed and results are correct

File:
1 edited

Legend:

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

    r554 r567  
    3333                                           const std::vector<CArray<size_t,1>* >& globalIndexOnServer); 
    3434 
     35    virtual void computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 
     36                                           const CArray<int,1>& localIndexOnClient, 
     37                                           const std::vector<CArray<size_t,1>* >& globalIndexOnServer); 
     38 
    3539    std::map<int,int> computeConnectedClients(int nbServer, int nbClient, 
    3640                                              MPI_Comm& clientIntraComm, 
     
    4246  protected: 
    4347    void defaultComputeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 
    44                                           const std::vector<CArray<size_t,1>* >& globalIndexOnServer); 
     48                                          const std::vector<CArray<size_t,1>* >& globalIndexOnServer, 
     49                                          const CArray<int,1>* localIndexOnClient = 0); 
    4550 
    4651  private: 
Note: See TracChangeset for help on using the changeset viewer.