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

Final tests of zoom and inverse on axis

+) Modify test_client and test_complete to work with new grid definition
+) Correct some bugs causing memory leak
+) Clean abundant code
+) Add more comments to new files

Test
+) On Curie
+) test_client and test_complete pass with correct results

Location:
XIOS/trunk/src/transformation
Files:
1 added
1 moved

Legend:

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

    r623 r624  
     1/*! 
     2   \file axis_algorithm_transformation.hpp 
     3   \author Ha NGUYEN 
     4   \since 14 May 2015 
     5   \date 09 June 2015 
     6 
     7   \brief Interface for all axis transformation algorithms. 
     8 */ 
     9 
    110#include "axis_algorithm_transformation.hpp" 
    2 #include "axis_inverse.hpp" 
    3 #include "axis_zoom.hpp" 
     11#include "axis_algorithm_inverse.hpp" 
     12#include "axis_algorithm_zoom.hpp" 
    413 
    514namespace xios { 
     
    817 : CGenericAlgorithmTransformation() 
    918{ 
    10 //  if (axisDestination->size.getValue() != axisSource->size.getValue()) 
    11 //  { 
    12 //    ERROR("CAxisZoom::CAxisZoom(CAxis* axisDestination, CAxis* axisSource)", 
    13 //           << "Two axis have different size" 
    14 //           << "Size of axis source " <<axisSource->getId() << " is " << axisSource->size.getValue()  << std::endl 
    15 //           << "Size of axis destionation " <<axisDestination->getId() << " is " << axisDestination->size.getValue()); 
    16 //  } 
    17 // 
    18 // 
    19 //  axisDestGlobalSize_ = axisDestination->size.getValue(); 
    20 //  int niDest = axisDestination->ni.getValue(); 
    21 //  int ibeginDest = axisDestination->ibegin.getValue(); 
    22 // 
    23 //  for (int idx = 0; idx < niDest; ++idx) axisDestGlobalIndex_.push_back(ibeginDest+idx); 
    2419} 
    2520 
    2621CAxisAlgorithmTransformation::~CAxisAlgorithmTransformation() 
    2722{ 
    28 //  for (int idx = 0; idx < algosOfAnAxis_.size(); ++idx) delete algosOfAnAxis_[idx]; 
    2923} 
    3024 
    3125void CAxisAlgorithmTransformation::computeIndexSourceMapping() 
    3226{ 
    33 //  if (!algosOfAnAxis_.empty()) 
    34 //  { 
    35 //    algosOfAnAxis_[0]->computeIndexSourceMapping(this->transformationMapping_); 
    36 //    for (int idx = 1; idx < algosOfAnAxis_.size(); ++idx) 
    37 //    { 
    38 //      algosOfAnAxis_[idx]->computeIndexSourceMapping(algosOfAnAxis_[idx-1]->getTransformationMapping()); 
    39 //    } 
    40 //    this->transformationMapping_ = algosOfAnAxis_[algosOfAnAxis_.size()-1]->getTransformationMapping(); 
    41 //  } 
    4227} 
    4328 
     
    162147  } 
    163148} 
    164  
    165  
    166149} 
Note: See TracChangeset for help on using the changeset viewer.