Ignore:
Timestamp:
08/24/15 14:53:36 (9 years ago)
Author:
mhnguyen
Message:

Implementing some code factoring

+) Replace some slow searching function by faster ones

Test
+) On Curie
+) test_client and test_complete are correct

File:
1 edited

Legend:

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

    r666 r668  
    2525  CDistributionClient distributionClientSrc(client->clientRank, gridSource_); 
    2626 
    27   const CArray<size_t,1>& globalIndexGridSrc = distributionClientSrc.getGlobalDataIndexSendToServer(); //gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer(); 
     27  const std::vector<size_t>& globalIndexGridSrc = distributionClientSrc.getGlobalDataIndexSendToServer(); //gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer(); 
    2828  boost::unordered_map<size_t,int> globalIndexOfServer; 
    29   int globalIndexSize = globalIndexGridSrc.numElements(); 
     29  int globalIndexSize = globalIndexGridSrc.size(); 
    3030  for (int idx = 0; idx < globalIndexSize; ++idx) 
    3131  { 
    32     globalIndexOfServer[globalIndexGridSrc(idx)] = clientRank; 
     32    globalIndexOfServer[globalIndexGridSrc[idx]] = clientRank; 
    3333  } 
    3434 
Note: See TracChangeset for help on using the changeset viewer.