Ignore:
Timestamp:
09/15/15 17:31:13 (9 years ago)
Author:
mhnguyen
Message:

Modifying the interface of interpolation domain

+) Change node name from interpolate_from_file_domain to interpolate_domain and add some new atrributes
+) Add more tests into test_remap

Test
+) On Curie
+) test_remap works for direct weight calculation and reading weight calculation from file

File:
1 edited

Legend:

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

    r688 r689  
    1212#include "axis_algorithm_interpolate.hpp" 
    1313#include "domain_algorithm_zoom.hpp" 
    14 #include "domain_algorithm_interpolate_from_file.hpp" 
     14#include "domain_algorithm_interpolate.hpp" 
    1515#include "context.hpp" 
    1616#include "context_client.hpp" 
     
    276276 
    277277  CZoomDomain* zoomDomain = 0; 
    278   CInterpolateFromFileDomain* interpFileDomain = 0; 
     278  CInterpolateDomain* interpFileDomain = 0; 
    279279  CGenericAlgorithmTransformation* algo = 0; 
    280280  switch (transType) 
    281281  { 
    282     case TRANS_INTERPOLATE_DOMAIN_FROM_FILE: 
    283       interpFileDomain = dynamic_cast<CInterpolateFromFileDomain*> (it->second); 
    284       algo = new CDomainAlgorithmInterpolateFromFile(domainListDestP[domainIndex], domainListSrcP[domainIndex],interpFileDomain); 
     282    case TRANS_INTERPOLATE_DOMAIN: 
     283      interpFileDomain = dynamic_cast<CInterpolateDomain*> (it->second); 
     284      algo = new CDomainAlgorithmInterpolate(domainListDestP[domainIndex], domainListSrcP[domainIndex],interpFileDomain); 
    285285      break; 
    286286    case TRANS_ZOOM_DOMAIN: 
     
    312312  switch (transType) 
    313313  { 
    314     case TRANS_INTERPOLATE_DOMAIN_FROM_FILE: 
     314    case TRANS_INTERPOLATE_DOMAIN: 
    315315    case TRANS_ZOOM_DOMAIN: 
    316316      domainIndex = elementPosition2DomainPositionInGrid_[elementPositionInGrid]; 
     
    494494     if (searchCurrentSrc.search(itbIndex, iteIndex, globalIndexOfCurrentGridSourceToSend[idx], itIndex)) 
    495495     { 
    496 //       int index = std::distance(itbArr, itArr); 
    497        sendBuff[idx+currentBuffPosition] = globalIndexOfOriginalGridSource_[*itIndex]; //[index]; 
     496       sendBuff[idx+currentBuffPosition] = globalIndexOfOriginalGridSource_[*itIndex]; 
    498497     } 
    499498   } 
Note: See TracChangeset for help on using the changeset viewer.