Changeset 827 for XIOS/trunk/src/node/interpolate_axis.cpp
- Timestamp:
- 03/23/16 16:10:45 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/interpolate_axis.cpp
r630 r827 1 1 #include "interpolate_axis.hpp" 2 2 #include "type.hpp" 3 #include "field.hpp" 3 4 4 5 namespace xios { … … 23 24 ENodeType CInterpolateAxis::GetType(void) { return eInterpolateAxis; } 24 25 25 void CInterpolateAxis::checkValid(CAxis* axis Dest)26 void CInterpolateAxis::checkValid(CAxis* axisSrc) 26 27 { 28 if (this->order.isEmpty()) this->order.setValue(2); 29 int order = this->order.getValue(); 30 if (order >= axisSrc->n_glo.getValue()) 31 { 32 ERROR("CInterpolateAxis::checkValid(CAxis* axisSrc)", 33 << "Order of interpolation is greater than global size of axis source" 34 << "Size of axis source " <<axisSrc->getId() << " is " << axisSrc->n_glo.getValue() << std::endl 35 << "Order of interpolation is " << order ); 36 } 37 38 39 if (!this->coordinate.isEmpty()) 40 { 41 StdString coordinate = this->coordinate.getValue(); 42 if (!CField::has(coordinate)) 43 ERROR("CInterpolateAxis::checkValid(CAxis* axisSrc)", 44 << "Coordinate field whose id " << coordinate << "does not exist " 45 << "Please define one"); 46 } 27 47 } 28 48 49 std::vector<StdString> CInterpolateAxis::checkAuxInputs_() 50 { 51 std::vector<StdString> auxInputs; 52 if (!this->coordinate.isEmpty()) 53 { 54 StdString coordinate = this->coordinate.getValue(); 55 if (!CField::has(coordinate)) 56 ERROR("CInterpolateAxis::checkValid(CAxis* axisSrc)", 57 << "Coordinate field whose id " << coordinate << "does not exist " 58 << "Please define one"); 59 auxInputs.push_back(coordinate); 60 } 61 62 return auxInputs; 63 } 29 64 }
Note: See TracChangeset
for help on using the changeset viewer.