Ignore:
Timestamp:
08/24/15 14:53:27 (9 years ago)
Author:
mhnguyen
Message:

Change name of several axis attributes and remove some redundant variable of domain

+) Change name of axis attributes to make them consistent with ones of domain
+) Remove zoom_client_* of domain

Test
+) On Curie
+) All tests pass and are correct

File:
1 edited

Legend:

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

    r630 r666  
    2020  interpAxis->checkValid(axisSource); 
    2121  order_ = interpAxis->order.getValue(); 
    22   if (order_ >= axisSource->size.getValue()) 
     22  if (order_ >= axisSource->n_glo.getValue()) 
    2323  { 
    2424    ERROR("CAxisAlgorithmInterpolate::CAxisAlgorithmInterpolate(CAxis* axisDestination, CAxis* axisSource, CInterpolateAxis* interpAxis)", 
    25            << "Order of interpolation is greater than size of axis source" 
    26            << "Size of axis source " <<axisSource->getId() << " is " << axisSource->size.getValue()  << std::endl 
     25           << "Order of interpolation is greater than global size of axis source" 
     26           << "Size of axis source " <<axisSource->getId() << " is " << axisSource->n_glo.getValue()  << std::endl 
    2727           << "Order of interpolation is " << order_ ); 
    2828  } 
     
    4343  int nbClient = client->clientSize; 
    4444 
    45   int srcSize  = axisSrc_->size.getValue(); 
     45  int srcSize  = axisSrc_->n_glo.getValue(); 
    4646  int numValue = axisValue.numElements(); 
    4747 
     
    6767  const double sfmax = NumTraits<double>::sfmax(); 
    6868 
    69   int ibegin = axisDest_->ibegin.getValue(); 
     69  int ibegin = axisDest_->begin.getValue(); 
    7070  CArray<double,1>& axisDestValue = axisDest_->value; 
    7171  int numValue = axisDestValue.numElements(); 
     
    131131  std::map<int, std::vector<std::pair<int,double> > >::const_iterator itb = interpolatingIndexValues.begin(), it, 
    132132                                                                      ite = interpolatingIndexValues.end(); 
    133   int ibegin = axisDest_->ibegin.getValue(); 
     133  int ibegin = axisDest_->begin.getValue(); 
    134134  for (it = itb; it != ite; ++it) 
    135135  { 
     
    169169  int nbClient = client->clientSize; 
    170170 
    171   int srcSize  = axisSrc_->size.getValue(); 
     171  int srcSize  = axisSrc_->n_glo.getValue(); 
    172172  int numValue = axisValue.numElements(); 
    173173 
     
    191191    int* recvIndexBuff = new int [srcSize]; 
    192192 
    193     int ibegin = axisSrc_->ibegin.getValue(); 
     193    int ibegin = axisSrc_->begin.getValue(); 
    194194    for (int idx = 0; idx < numValue; ++idx) 
    195195    { 
Note: See TracChangeset for help on using the changeset viewer.