Changeset 10431
- Timestamp:
- 11/02/11 12:00:06 (13 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r10428 r10431 1421 1421 int i,num_inputs; 1422 1422 Penta *penta = NULL; 1423 Input *copy = NULL; 1423 1424 Input **base_inputs = NULL; 1424 Input *copy = NULL;1425 1425 1426 1426 /*Are we on the base, not on the surface?:*/ … … 1439 1439 } 1440 1440 else if (object_type==NodeEnum){ 1441 num_inputs= 6;1441 num_inputs=3; //only the three upper nodes 1442 1442 base_inputs=(Input**)xmalloc(num_inputs*sizeof(Input*)); 1443 1443 for(i=0;i<num_inputs;i++){ … … 1459 1459 penta=this; 1460 1460 for(;;){ 1461 1462 1461 /* get upper Penta*/ 1463 1462 penta=penta->GetUpperElement(); … … 1470 1469 penta->inputs->AddInput((Input*)copy); 1471 1470 } 1472 else if 1471 else if(object_type==MaterialsEnum){ 1473 1472 penta->matice->inputs->AddInput((Input*)copy); 1474 1473 } 1475 else if 1476 penta->nodes[i ]->inputs->AddInput((Input*)copy);1474 else if(object_type==NodeEnum){ 1475 penta->nodes[i+3]->inputs->AddInput((Input*)copy); //change only the three upper nodes 1477 1476 } 1478 1477 else{ … … 2067 2066 double h[NUMVERTICES],s[NUMVERTICES],b[NUMVERTICES],ba[NUMVERTICES]; 2068 2067 2068 if(!IsOnBed()) return; 2069 2069 2070 /*Recover info at the vertices: */ 2070 2071 parameters->FindParam(&migration_style,GroundinglineMigrationEnum); … … 2126 2127 2127 2128 /*Update inputs*/ 2128 this->inputs->AddInput(new BoolInput(MaskElementonfloatingiceEnum,elementonshelf));2129 2130 /*Update inputs*/2131 2129 this->inputs->AddInput(new PentaVertexInput(SurfaceEnum,&s[0])); 2132 2130 this->inputs->AddInput(new PentaVertexInput(BedEnum,&b[0])); 2131 this->inputs->AddInput(new BoolInput(MaskElementonfloatingiceEnum,elementonshelf)); 2132 2133 /*Extrude inputs*/ 2134 this->InputExtrude(SurfaceEnum,ElementEnum); 2135 this->InputExtrude(BedEnum,ElementEnum); 2136 this->InputExtrude(MaskElementonfloatingiceEnum,ElementEnum); 2137 this->InputExtrude(MaskVertexonfloatingiceEnum,NodeEnum); 2138 this->InputExtrude(MaskVertexongroundediceEnum,NodeEnum); 2133 2139 } 2134 2140 /*}}}*/ -
issm/trunk/src/c/objects/Inputs/BoolInput.cpp
r10135 r10431 225 225 } 226 226 /*}}}*/ 227 /*FUNCTION BoolInput::Extrude{{{1*/ 228 void BoolInput::Extrude(void){ 229 230 /*do nothing*/ 231 return; 232 } 233 /*}}}*/ 227 234 /*FUNCTION BoolInput::GetVectorFromInputs{{{1*/ 228 235 void BoolInput::GetVectorFromInputs(Vec vector,int* doflist){ -
issm/trunk/src/c/objects/Inputs/BoolInput.h
r10135 r10431 79 79 void AXPY(Input* xinput,double scalar); 80 80 void Constrain(double cm_min, double cm_max); 81 void Extrude(void) {_error_("not supported yet");};81 void Extrude(void); 82 82 void VerticallyIntegrate(Input* thickness_input){_error_("not supported yet");}; 83 83 void GetVectorFromInputs(Vec vector,int* doflist); -
issm/trunk/src/c/objects/Inputs/PentaVertexInput.cpp
r10135 r10431 534 534 /*First 3 values copied on 3 last values*/ 535 535 for(i=0;i<3;i++) this->values[3+i]=this->values[i]; 536 537 536 } 538 537 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.