Changeset 11468
- Timestamp:
- 02/17/12 17:11:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage/src/c/objects/Elements/Penta.cpp
r11395 r11468 1632 1632 1633 1633 /*Go through all the input objects, and find the one corresponding to enum_type, if it exists: */ 1634 if (enum_type==MaterialsRheologyBbarEnum ) input=this->matice->inputs->GetInput(MaterialsRheologyBEnum);1634 if (enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum) input=this->matice->inputs->GetInput(enum_type); 1635 1635 else input=this->inputs->GetInput(enum_type); 1636 1636 //if (!input) _error_("Input %s not found in penta->inputs",EnumToStringx(enum_type)); why error out? if the requested input does not exist, we should still … … 1746 1746 break; 1747 1747 case MaterialsRheologyBbarEnum: 1748 case MaterialsRheologyZbarEnum: 1748 1749 /*Matice will take care of it*/ break; 1749 1750 default: … … 2037 2038 2038 2039 /*update input*/ 2039 this->inputs->AddInput(new PentaP1Input(name,values)); 2040 if (name==MaterialsRheologyZEnum || name==MaterialsRheologyZbarEnum){ 2041 matice->inputs->AddInput(new PentaP1Input(name,values)); 2042 } 2043 else{ 2044 this->inputs->AddInput(new PentaP1Input(name,values)); 2045 } 2040 2046 return; 2041 2047 … … 3199 3205 *presponse=this->matice->GetBbar(); 3200 3206 break; 3207 case MaterialsRheologyZbarEnum: 3208 *presponse=this->matice->GetZbar(); 3209 break; 3210 3201 3211 case VelEnum: 3202 3212 … … 6046 6056 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 6047 6057 6058 /*Depth Averaging Z*/ 6059 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 6060 6048 6061 /*Call Tria function*/ 6049 6062 Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria. … … 6053 6066 /*Delete B averaged*/ 6054 6067 this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum); 6068 6069 /*Delete Z averaged*/ 6070 this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum); 6055 6071 6056 6072 /*clean up and return*/ … … 7487 7503 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 7488 7504 7505 /*Depth Averaging Z*/ 7506 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 7507 7489 7508 /*Call Tria function*/ 7490 7509 Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria. … … 7494 7513 /*Delete B averaged*/ 7495 7514 this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum); 7515 7516 /*Delete Z averaged*/ 7517 this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum); 7496 7518 7497 7519 /*clean up and return*/
Note:
See TracChangeset
for help on using the changeset viewer.