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

Implementing transformation algorithm: zoom axis (local commit)

+) Implement zoom axis: zoomed points are points not masked
+) Correct some minor bugs

Test
+) Ok with normal cases: zoom in the last of transformation list
+) There is still a bug in case of zoom then inverse

File:
1 edited

Legend:

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

    r622 r623  
     1/*! 
     2   \file transformation_mapping.cpp 
     3   \author Ha NGUYEN 
     4   \since 14 May 2015 
     5   \date 09 June 2015 
     6 
     7   \brief Take charge of communication among clients to exchange transformed data. 
     8 */ 
     9 
    110#include "transformation_mapping.hpp" 
    211#include <boost/unordered_map.hpp> 
     
    1423  int clientRank = client->clientRank; 
    1524 
    16   CDistributionClient distributionClientDest(client->clientRank, gridSource_); 
     25  CDistributionClient distributionClientSrc(client->clientRank, gridSource_); 
    1726 
    18   const CArray<size_t,1>& globalIndexGridSrc = distributionClientDest.getGlobalDataIndexSendToServer(); //gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer(); 
     27  const CArray<size_t,1>& globalIndexGridSrc = distributionClientSrc.getGlobalDataIndexSendToServer(); //gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer(); 
    1928  boost::unordered_map<size_t,int> globalIndexOfServer; 
    2029  int globalIndexSize = globalIndexGridSrc.numElements(); 
     
    2433  } 
    2534 
     35  std::cout << "global index grid src " << globalIndexGridSrc << std::endl; 
    2636  gridIndexClientClientMapping_ = new CClientServerMappingDistributed(globalIndexOfServer, 
    2737                                                                      client->intraComm, 
     
    151161} 
    152162 
     163/*! 
     164  Return (grid) global index on grid destination. This mapping contains the rank of client source (that sends info to grid destination) 
     165and the corresponding global index to write on grid destination. 
     166  \return global index mapping to receive on grid destination 
     167*/ 
    153168const std::map<int,std::vector<std::vector<size_t> > >& CTransformationMapping::getGlobalIndexReceivedOnGridDestMapping() const 
    154169{ 
     
    156171} 
    157172 
     173/*! 
     174  Return (grid) global index on grid source. This mapping contains the rank of client destination (which receives transformation info) and 
     175the corresponding global index to send 
     176  \return global index mapping to send on grid source 
     177*/ 
    158178const std::map<int,std::vector<size_t> >& CTransformationMapping::getGlobalIndexSendToGridDestMapping() const 
    159179{ 
Note: See TracChangeset for help on using the changeset viewer.