Ignore:
Timestamp:
06/22/15 13:36:27 (9 years ago)
Author:
mhnguyen
Message:

Final testing transfomation algorithm: inverse axis (local commit)

+) Make some minor change to make sure one element (axis or domain) be able to have several similar transformation

Test
+) On Curie
+) test_new_feature: test passed with correct data written

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/transformation_mapping.cpp

    r621 r622  
    33#include "context.hpp" 
    44#include "context_client.hpp" 
     5#include "distribution_client.hpp" 
    56 
    67namespace xios { 
     
    1314  int clientRank = client->clientRank; 
    1415 
    15   const CArray<size_t,1>& globalIndexGridSrc = gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer(); 
     16  CDistributionClient distributionClientDest(client->clientRank, gridSource_); 
     17 
     18  const CArray<size_t,1>& globalIndexGridSrc = distributionClientDest.getGlobalDataIndexSendToServer(); //gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer(); 
    1619  boost::unordered_map<size_t,int> globalIndexOfServer; 
    1720  int globalIndexSize = globalIndexGridSrc.numElements(); 
     
    3538this function tries to find out which clients a client needs to send and receive these global indexes to accomplish the transformations. 
    3639  The grid destination is the grid whose global indexes demande global indexes from the grid source 
    37   Grid destination and grid source are also distributed among clients but in a different manner. 
     40  Grid destination and grid source are also distributed among clients but in different manners. 
    3841  \param [in] globaIndexMapFromDestToSource mapping representing the transformations 
    3942*/ 
Note: See TracChangeset for help on using the changeset viewer.