Ignore:
Timestamp:
07/28/15 13:37:07 (9 years ago)
Author:
mhnguyen
Message:

Making changes in domain to make sure unstructed grid work with new method of index distribution

+) Change the way define i_index and j_index of a domain
+) Remove some redundant attributes of domain
+) Adjust the way to calculate index distribution on server side

Test
+) Make some minor change to test_unstruct_complete to work with new XIOS
+) On Curie
+) All test pass and correct

File:
1 edited

Legend:

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

    r653 r657  
    1212#include "axis_algorithm_interpolate.hpp" 
    1313#include "domain_algorithm_zoom.hpp" 
     14#include "domain_algorithm_interpolate_from_file.hpp" 
    1415#include "context.hpp" 
    1516#include "context_client.hpp" 
     
    277278 
    278279  CZoomDomain* zoomDomain = 0; 
     280  CInterpolateFromFileDomain* interpFileDomain = 0; 
    279281  CGenericAlgorithmTransformation* algo = 0; 
    280282  switch (transType) 
    281283  { 
     284    case TRANS_INTERPOLATE_DOMAIN_FROM_FILE: 
     285      interpFileDomain = dynamic_cast<CInterpolateFromFileDomain*> (it->second); 
     286      algo = new CDomainAlgorithmInterpolateFromFile(domainListDestP[domainIndex], domainListSrcP[domainIndex],interpFileDomain); 
     287      break; 
    282288    case TRANS_ZOOM_DOMAIN: 
    283289      zoomDomain = dynamic_cast<CZoomDomain*> (it->second); 
     
    308314  switch (transType) 
    309315  { 
     316    case TRANS_INTERPOLATE_DOMAIN_FROM_FILE: 
    310317    case TRANS_ZOOM_DOMAIN: 
    311318      domainIndex = elementPosition2DomainPositionInGrid_[elementPositionInGrid]; 
Note: See TracChangeset for help on using the changeset viewer.