Changeset 12274
- Timestamp:
- 05/22/12 17:25:35 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage/src/c/modules/ModelProcessorx/CreateElementsVerticesAndMaterials.cpp
r12004 r12274 71 71 InversionMaxParametersEnum,InversionThreshParametersEnum); 72 72 73 /*Add new const rant material property tgo materials, at the end: */73 /*Add new constant material property to materials, at the end: */ 74 74 materials->AddObject(new Matpar(numberofelements+1,iomodel));//put it at the end of the materials 75 75 … … 82 82 for (i=0;i<numberofvertices;i++){ 83 83 84 /*vertices and nodes (same number, as we are running continuous galerkin formulation : */84 /*vertices and nodes (same number, as we are running continuous galerkin formulation): */ 85 85 if(iomodel->my_vertices[i]){ 86 86 -
issm/branches/trunk-jpl-damage/src/c/objects/Elements/Penta.cpp
r12168 r12274 4475 4475 Input* input=NULL; 4476 4476 4477 if(enum_type==MaterialsRheologyBbarEnum ){4477 if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){ 4478 4478 if(!IsOnBed()) return; 4479 input=(Input*)matice->inputs->GetInput( MaterialsRheologyBEnum);4479 input=(Input*)matice->inputs->GetInput(enum_type); 4480 4480 } 4481 4481 else{ … … 4494 4494 Input* input=NULL; 4495 4495 4496 if(enum_type==MaterialsRheologyBbarEnum ){4497 input=(Input*)matice->inputs->GetInput( MaterialsRheologyBEnum);4496 if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){ 4497 input=(Input*)matice->inputs->GetInput(enum_type); 4498 4498 } 4499 4499 else{ … … 4513 4513 Input* input=NULL; 4514 4514 4515 if(enum_type==MaterialsRheologyBbarEnum ){4516 input=(Input*)matice->inputs->GetInput( MaterialsRheologyBEnum);4515 if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){ 4516 input=(Input*)matice->inputs->GetInput(enum_type); 4517 4517 } 4518 4518 else{ … … 5069 5069 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 5070 5070 5071 /*Depth Average Z*/ 5072 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 5073 5071 5074 /*Collapse element to the base*/ 5072 5075 Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria (lower face). … … 5086 5089 /*Depth Average B*/ 5087 5090 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 5091 5092 /*Depth Average Z*/ 5093 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 5088 5094 5089 5095 /*Collapse element to the base*/ … … 5104 5110 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 5105 5111 5112 /*Depth Average Z*/ 5113 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 5114 5106 5115 /*Collapse element to the base*/ 5107 5116 Tria* tria=(Tria*)SpawnTria(0,1,2); … … 5126 5135 for(int i=0;i<num_controls;i++){ 5127 5136 5128 if(control_type[i]==MaterialsRheologyBbarEnum ){5137 if(control_type[i]==MaterialsRheologyBbarEnum || control_type[i]==MaterialsRheologyZbarEnum){ 5129 5138 if (!IsOnBed()) goto cleanup_and_return; 5130 input=(Input*)matice->inputs->GetInput( MaterialsRheologyBEnum); _assert_(input);5139 input=(Input*)matice->inputs->GetInput(control_type[i]); _assert_(input); 5131 5140 } 5132 5141 else{ … … 5140 5149 if (save_parameter) ((ControlInput*)input)->SaveValue(); 5141 5150 5142 if(control_type[i]==MaterialsRheologyBbarEnum ){5143 this->InputExtrude( MaterialsRheologyBEnum,MaterialsEnum);5151 if(control_type[i]==MaterialsRheologyBbarEnum || control_type[i]==MaterialsRheologyZbarEnum){ 5152 this->InputExtrude(control_type[i],MaterialsEnum); 5144 5153 } 5145 5154 } -
issm/branches/trunk-jpl-damage/src/c/objects/Elements/Tria.cpp
r12168 r12274 3789 3789 this->GetConnectivityList(&connectivity[0]); 3790 3790 3791 /*Build frict oin element, needed later: */3791 /*Build friction element, needed later: */ 3792 3792 friction=new Friction("2d",inputs,matpar,analysis_type); 3793 3793
Note:
See TracChangeset
for help on using the changeset viewer.