Changeset 15976
- Timestamp:
- 08/27/13 14:28:20 (12 years ago)
- Location:
- issm/trunk-jpl/src/c/classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r15974 r15976 2028 2028 base_inputs[0]=(Input*)material->inputs->GetInput(enum_type); 2029 2029 } 2030 else if (object_type==NodeEnum){2031 num_inputs=3; //only the three upper nodes2032 base_inputs=xNew<Input*>(num_inputs);2033 for(i=0;i<num_inputs;i++){2034 base_inputs[i]=(Input*)this->nodes[i]->inputs->GetInput(enum_type);2035 }2036 }2037 2030 else{ 2038 2031 _error_("object of type " << EnumToStringx(object_type) << " not supported yet"); … … 2061 2054 else if(object_type==MaterialsEnum){ 2062 2055 penta->material->inputs->AddInput((Input*)copy); 2063 }2064 else if(object_type==NodeEnum){2065 penta->nodes[i+3]->inputs->AddInput((Input*)copy); //change only the three upper nodes2066 2056 } 2067 2057 else{ -
issm/trunk-jpl/src/c/classes/Node.cpp
r15877 r15976 19 19 Node::Node(){ 20 20 this->approximation=0; 21 this->inputs=NULL;22 21 } 23 22 /*}}}*/ … … 47 46 else 48 47 this->approximation=0; 49 50 //intialize inputs, and add as many inputs per element as requested:51 this->inputs=new Inputs();52 if(iomodel->Data(MaskVertexonfloatingiceEnum))53 this->inputs->AddInput(new BoolInput(MaskVertexonfloatingiceEnum,reCast<bool>(iomodel->Data(MaskVertexonfloatingiceEnum)[io_index])));54 if(iomodel->Data(MaskVertexongroundediceEnum))55 this->inputs->AddInput(new BoolInput(MaskVertexongroundediceEnum,reCast<bool>(iomodel->Data(MaskVertexongroundediceEnum)[io_index])));56 48 57 49 /*Stressbalance Horiz*/ … … 124 116 /*FUNCTION Node::~Node(){{{*/ 125 117 Node::~Node(){ 126 delete inputs;127 118 return; 128 119 } … … 140 131 _printf_(" indexingupdate: " << indexingupdate << "\n"); 141 132 indexing.Echo(); 142 _printf_(" inputs: " << inputs << "\n");143 133 144 134 } … … 154 144 _printf_(" indexingupdate: " << indexingupdate << "\n"); 155 145 indexing.DeepEcho(); 156 _printf_(" inputs\n");157 146 158 147 } … … 577 566 return indexing.clone; 578 567 579 }580 /*}}}*/581 /*FUNCTION Node::IsGrounded {{{*/582 int Node::IsGrounded(){583 584 bool onsheet;585 586 /*recover parameters: */587 inputs->GetInputValue(&onsheet,MaskVertexongroundediceEnum);588 589 return onsheet;590 }591 /*}}}*/592 /*FUNCTION Node::IsFloating {{{*/593 int Node::IsFloating(){594 595 bool onshelf;596 597 /*recover parameters: */598 inputs->GetInputValue(&onshelf,MaskVertexonfloatingiceEnum);599 600 return onshelf;601 568 } 602 569 /*}}}*/ -
issm/trunk-jpl/src/c/classes/Node.h
r15861 r15976 35 35 bool indexingupdate; 36 36 DofIndexing indexing; 37 Inputs *inputs; //properties of this node38 37 int analysis_type; 39 38 IssmDouble coord_system[3][3];
Note:
See TracChangeset
for help on using the changeset viewer.