Ignore:
Timestamp:
09/22/16 10:58:32 (8 years ago)
Author:
mhnguyen
Message:

Improving transformation selection. Instead of modifying directly grid_transformation
we only need to register a new transformation with the framework

+) Update all transformations with this new method

Test
+) On Curie
+) Basic tests pass

File:
1 edited

Legend:

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

    r897 r933  
    99#include "grid_transformation_selector.hpp" 
    1010#include "grid.hpp" 
    11 //#include <boost/unordered_map.hpp> 
     11#include "algo_types.hpp" 
    1212 
    1313namespace xios { 
     
    2727       << "Number of elements of grid source " <<gridSource_->getId() << " is " << gridSource_->axis_domain_order.numElements()  << std::endl 
    2828       << "Number of elements of grid destination " <<gridDestination_->getId() << " is " << numElement); 
     29  registerTransformations(); 
    2930  initializeTransformations(type); 
    3031} 
     
    306307} 
    307308 
    308 } 
     309 
     310void CGridTransformationSelector::registerTransformations() 
     311{ 
     312  //! Scalar 
     313  CScalarAlgorithmReduceScalar::registerTrans(); 
     314 
     315  //! Axis 
     316  CAxisAlgorithmZoom::registerTrans(); 
     317  CAxisAlgorithmExtractDomain::registerTrans(); 
     318  CAxisAlgorithmInterpolate::registerTrans(); 
     319  CAxisAlgorithmInverse::registerTrans(); 
     320  CAxisAlgorithmReduceDomain::registerTrans(); 
     321 
     322  //! Domain 
     323//  CDomainAlgorithmComputeConnectivity::registerTrans(); 
     324  CDomainAlgorithmInterpolate::registerTrans(); 
     325  CDomainAlgorithmZoom::registerTrans(); 
     326 
     327} 
     328 
     329} 
Note: See TracChangeset for help on using the changeset viewer.