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

Smalll improvements for interpolation axis

+) Strictly check order of interpolation
+) Change default order to 1
+) Add precision check

Test
+) On Curie
+) Correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/interpolate_axis.cpp

    r836 r937  
    4040  void CInterpolateAxis::checkValid(CAxis* axisSrc) 
    4141  { 
    42     if (this->order.isEmpty()) this->order.setValue(2); 
     42    if (this->order.isEmpty()) this->order.setValue(1); 
    4343    int order = this->order.getValue(); 
    4444    if (order >= axisSrc->n_glo.getValue()) 
     
    4646      ERROR("CInterpolateAxis::checkValid(CAxis* axisSrc)", 
    4747             << "Order of interpolation is greater than global size of axis source" 
     48             << "Size of axis source " <<axisSrc->getId() << " is " << axisSrc->n_glo.getValue()  << std::endl 
     49             << "Order of interpolation is " << order ); 
     50    } 
     51 
     52    if (order < 1) 
     53    { 
     54      ERROR("CInterpolateAxis::checkValid(CAxis* axisSrc)", 
     55             << "Order of interpolation is smaller than 1" 
    4856             << "Size of axis source " <<axisSrc->getId() << " is " << axisSrc->n_glo.getValue()  << std::endl 
    4957             << "Order of interpolation is " << order ); 
Note: See TracChangeset for help on using the changeset viewer.