Changeset 15038
- Timestamp:
- 05/16/13 09:39:33 (12 years ago)
- Location:
- issm/trunk-jpl/src/c/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Node.cpp
r15037 r15038 18 18 /*FUNCTION Node::Node() default constructor {{{*/ 19 19 Node::Node(){ 20 this->inputs=NULL;21 this->hvertex=NULL;22 return;20 this->approximation=0; 21 this->inputs=NULL; 22 this->hvertex=NULL; 23 23 } 24 24 /*}}}*/ … … 49 49 /*Hooks*/ 50 50 this->hvertex=new Hook(&vertex_id,1); //node id is the same as the vertex id, continuous galerkin! 51 52 if (analysis_type==DiagnosticHorizAnalysisEnum) 53 this->approximation=reCast<int>(iomodel->Data(FlowequationVertexEquationEnum)[io_index]); 54 else 55 this->approximation=0; 51 56 52 57 //intialize inputs, and add as many inputs per element as requested: … … 57 62 this->inputs->AddInput(new BoolInput(MaskVertexongroundediceEnum,reCast<bool>(iomodel->Data(MaskVertexongroundediceEnum)[io_index]))); 58 63 if (analysis_type==DiagnosticHorizAnalysisEnum) 59 this-> inputs->AddInput(new IntInput(ApproximationEnum,reCast<IssmInt>(iomodel->Data(FlowequationVertexEquationEnum)[io_index])));64 this->approximation=reCast<int>(iomodel->Data(FlowequationVertexEquationEnum)[io_index]); 60 65 /*set single point constraints: */ 61 66 … … 525 530 /*FUNCTION Node::GetApproximation {{{*/ 526 531 int Node::GetApproximation(){ 527 528 int approximation;529 530 /*recover parameters: */531 inputs->GetInputValue(&approximation,ApproximationEnum);532 532 533 533 return approximation; -
issm/trunk-jpl/src/c/classes/Node.h
r15036 r15038 24 24 25 25 class Node: public Object ,public Update{ 26 27 private: 28 int approximation; //For ice flow models, we need to know what ice flow approximation is employed on this node 26 29 27 30 public:
Note:
See TracChangeset
for help on using the changeset viewer.