Changeset 13104
- Timestamp:
- 08/21/12 10:59:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage/src/c/classes/objects/Elements/Penta.cpp
r13101 r13104 1555 1555 /*Go through all the input objects, and find the one corresponding to enum_type, if it exists: */ 1556 1556 if (enum_type==MaterialsRheologyBbarEnum) input=this->matice->inputs->GetInput(MaterialsRheologyBEnum); 1557 else if (enum_type==MaterialsRheologyZbarEnum) input=this->matice->inputs->GetInput(MaterialsRheologyZEnum); 1557 1558 else input=this->inputs->GetInput(enum_type); 1558 1559 //if (!input) _error_("Input " << EnumToStringx(enum_type) << " not found in penta->inputs"); why error out? if the requested input does not exist, we should still … … 1667 1668 break; 1668 1669 case MaterialsRheologyBbarEnum: 1670 case MaterialsRheologyZbarEnum: 1669 1671 /*Matice will take care of it*/ break; 1670 1672 default: … … 3230 3232 *presponse=this->matice->GetBbar(); 3231 3233 break; 3234 case MaterialsRheologyZbarEnum: 3235 *presponse=this->matice->GetZbar(); 3236 break; 3232 3237 case VelEnum: 3233 3238 { … … 4347 4352 for(i=0;i<numdof;i++) B[i]=B_average; 4348 4353 this->matice->inputs->AddInput(new PentaP1Input(MaterialsRheologyBEnum,B)); 4354 this->matice->inputs->AddInput(new PentaP1Input(MaterialsRheologyZEnum,B)); 4349 4355 break; 4350 4356 case ArrheniusEnum: … … 4355 4361 for(i=0;i<numdof;i++) B[i]=B_average; 4356 4362 this->matice->inputs->AddInput(new PentaP1Input(MaterialsRheologyBEnum,B)); 4363 this->matice->inputs->AddInput(new PentaP1Input(MaterialsRheologyZEnum,B)); 4357 4364 break; 4358 4365 default: … … 4425 4432 for(i=0;i<numdof;i++) B[i]=B_average; 4426 4433 this->matice->inputs->AddInput(new PentaP1Input(MaterialsRheologyBEnum,B)); 4434 this->matice->inputs->AddInput(new PentaP1Input(MaterialsRheologyZEnum,B)); 4427 4435 break; 4428 4436 case ArrheniusEnum: … … 4433 4441 for(i=0;i<numdof;i++) B[i]=B_average; 4434 4442 this->matice->inputs->AddInput(new PentaP1Input(MaterialsRheologyBEnum,B)); 4443 this->matice->inputs->AddInput(new PentaP1Input(MaterialsRheologyZEnum,B)); 4435 4444 break; 4436 4445 default: … … 4540 4549 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 4541 4550 4551 /*Depth Averaging Z*/ 4552 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 4553 4542 4554 /*Call Tria function*/ 4543 4555 Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria. … … 4547 4559 /*Delete B averaged*/ 4548 4560 this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum); 4561 4562 /*Delete Z averaged*/ 4563 this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum); 4549 4564 4550 4565 /*clean up and return*/ … … 6304 6319 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 6305 6320 6321 /*Depth Averaging Z*/ 6322 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 6323 6306 6324 /*Call Tria function*/ 6307 6325 Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria. … … 6311 6329 /*Delete B averaged*/ 6312 6330 this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum); 6331 6332 /*Delete Z averaged*/ 6333 this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum); 6313 6334 6314 6335 /*clean up and return*/ … … 7860 7881 this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum); 7861 7882 7883 /*Depth Averaging Z*/ 7884 this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum); 7885 7862 7886 /*Call Tria function*/ 7863 7887 Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria. … … 7867 7891 /*Delete B averaged*/ 7868 7892 this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum); 7893 7894 /*Delete Z averaged*/ 7895 this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum); 7869 7896 7870 7897 /*clean up and return*/
Note:
See TracChangeset
for help on using the changeset viewer.