Changeset 827 for XIOS/trunk/src/node
- Timestamp:
- 03/23/16 16:10:45 (8 years ago)
- Location:
- XIOS/trunk/src/node
- Files:
-
- 3 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 } -
XIOS/trunk/src/node/interpolate_axis.hpp
r630 r827 52 52 virtual void checkValid(CAxis* axisDest); 53 53 54 std::vector<StdString> checkAuxInputs_(); 55 54 56 /// Accesseurs statiques /// 55 57 static StdString GetName(void); -
XIOS/trunk/src/node/transformation.hpp
r625 r827 24 24 virtual void checkValid(T* dest) = 0; 25 25 26 std::vector<StdString> checkAuxInputs() { return checkAuxInputs_(); } 27 26 28 /// Destructeur /// 27 29 virtual ~CTransformation(void) {} 30 31 protected: 32 virtual std::vector<StdString> checkAuxInputs_() { return std::vector<StdString>(); } 28 33 }; // class CTransformation 29 34
Note: See TracChangeset
for help on using the changeset viewer.