Changeset 12275
- Timestamp:
- 05/23/12 14:25:54 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage/src/c/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage/src/c/objects/Elements/Penta.cpp
r12274 r12275 1308 1308 for(;;){ 1309 1309 1310 /*Step1: Get original input (to be depth ave gaged): */1310 /*Step1: Get original input (to be depth averaged): */ 1311 1311 if (object_enum==MeshElementsEnum) 1312 1312 original_input=(Input*)penta->inputs->GetInput(enum_type); … … 4475 4475 Input* input=NULL; 4476 4476 4477 if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){4477 if(enum_type==MaterialsRheologyBbarEnum){ 4478 4478 if(!IsOnBed()) return; 4479 input=(Input*)matice->inputs->GetInput(enum_type); 4479 input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum); 4480 } 4481 else if(enum_type==MaterialsRheologyZbarEnum){ 4482 if(!IsOnBed()) return; 4483 input=(Input*)matice->inputs->GetInput(MaterialsRheologyZEnum); 4480 4484 } 4481 4485 else{ … … 4494 4498 Input* input=NULL; 4495 4499 4496 if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){ 4497 input=(Input*)matice->inputs->GetInput(enum_type); 4500 if(enum_type==MaterialsRheologyBbarEnum){ 4501 input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum); 4502 } 4503 else if(enum_type==MaterialsRheologyZbarEnum){ 4504 input=(Input*)matice->inputs->GetInput(MaterialsRheologyZEnum); 4498 4505 } 4499 4506 else{ … … 4513 4520 Input* input=NULL; 4514 4521 4515 if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){ 4516 input=(Input*)matice->inputs->GetInput(enum_type); 4522 if(enum_type==MaterialsRheologyBbarEnum) { 4523 input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum); 4524 } 4525 else if(enum_type==MaterialsRheologyZbarEnum) { 4526 input=(Input*)matice->inputs->GetInput(MaterialsRheologyZEnum); 4517 4527 } 4518 4528 else{ … … 4559 4569 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 4560 4570 4571 /*Depth Averaging Z*/ 4572 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 4573 4561 4574 /*Call Tria function*/ 4562 4575 Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria. … … 4566 4579 /*Delete B averaged*/ 4567 4580 this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum); 4581 4582 /*Delete Z averaged*/ 4583 this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum); 4568 4584 4569 4585 /*clean up and return*/ … … 5135 5151 for(int i=0;i<num_controls;i++){ 5136 5152 5137 if(control_type[i]==MaterialsRheologyBbarEnum || control_type[i]==MaterialsRheologyZbarEnum){5153 if(control_type[i]==MaterialsRheologyBbarEnum){ 5138 5154 if (!IsOnBed()) goto cleanup_and_return; 5139 input=(Input*)matice->inputs->GetInput(control_type[i]); _assert_(input); 5155 input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum); _assert_(input); 5156 } 5157 else if(control_type[i]==MaterialsRheologyZbarEnum){ 5158 if (!IsOnBed()) goto cleanup_and_return; 5159 input=(Input*)matice->inputs->GetInput(MaterialsRheologyZEnum); _assert_(input); 5140 5160 } 5141 5161 else{ … … 5149 5169 if (save_parameter) ((ControlInput*)input)->SaveValue(); 5150 5170 5151 if(control_type[i]==MaterialsRheologyBbarEnum || control_type[i]==MaterialsRheologyZbarEnum){ 5152 this->InputExtrude(control_type[i],MaterialsEnum); 5171 if(control_type[i]==MaterialsRheologyBbarEnum){ 5172 this->InputExtrude(MaterialsRheologyBEnum,MaterialsEnum); 5173 } 5174 else if(control_type[i]==MaterialsRheologyZbarEnum){ 5175 this->InputExtrude(MaterialsRheologyZEnum,MaterialsEnum); 5153 5176 } 5154 5177 } -
issm/branches/trunk-jpl-damage/src/c/objects/Materials/Matice.cpp
r12252 r12275 173 173 /*Output*/ 174 174 double Zbar; 175 175 176 176 inputs->GetInputAverage(&Zbar,MaterialsRheologyZbarEnum); 177 177 return Zbar;
Note:
See TracChangeset
for help on using the changeset viewer.