Changeset 15976 for issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
- Timestamp:
- 08/27/13 14:28:20 (12 years ago)
- File:
-
- 1 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{
Note:
See TracChangeset
for help on using the changeset viewer.