Changeset 15976


Ignore:
Timestamp:
08/27/13 14:28:20 (12 years ago)
Author:
Mathieu Morlighem
Message:

NEW: removed node inputs:

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  
    20282028                base_inputs[0]=(Input*)material->inputs->GetInput(enum_type);
    20292029        }
    2030         else if (object_type==NodeEnum){
    2031                 num_inputs=3; //only the three upper nodes
    2032                 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         }
    20372030        else{
    20382031                _error_("object of type " << EnumToStringx(object_type) << " not supported yet");
     
    20612054                        else if(object_type==MaterialsEnum){
    20622055                                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 nodes
    20662056                        }
    20672057                        else{
  • issm/trunk-jpl/src/c/classes/Node.cpp

    r15877 r15976  
    1919Node::Node(){
    2020        this->approximation=0;
    21         this->inputs=NULL;
    2221}
    2322/*}}}*/
     
    4746        else
    4847         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])));
    5648
    5749        /*Stressbalance Horiz*/
     
    124116/*FUNCTION Node::~Node(){{{*/
    125117Node::~Node(){
    126         delete inputs;
    127118        return;
    128119}
     
    140131        _printf_("   indexingupdate: " << indexingupdate << "\n");
    141132        indexing.Echo();
    142         _printf_("   inputs: " << inputs << "\n");
    143133
    144134}
     
    154144        _printf_("   indexingupdate: " << indexingupdate << "\n");
    155145        indexing.DeepEcho();
    156         _printf_("   inputs\n");
    157146
    158147}
     
    577566        return indexing.clone;
    578567
    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;
    601568}
    602569/*}}}*/
  • issm/trunk-jpl/src/c/classes/Node.h

    r15861 r15976  
    3535                bool         indexingupdate;
    3636                DofIndexing  indexing;
    37                 Inputs      *inputs;               //properties of this node
    3837                int          analysis_type;
    3938                IssmDouble   coord_system[3][3];
Note: See TracChangeset for help on using the changeset viewer.