Changeset 18033
- Timestamp:
- 05/20/14 15:34:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/DamageEvolutionAnalysis.cpp
r17889 r18033 23 23 parameters->AddObject(iomodel->CopyConstantObject(DamageMaxiterEnum)); 24 24 parameters->AddObject(iomodel->CopyConstantObject(DamageMaxDamageEnum)); 25 parameters->AddObject(iomodel->CopyConstantObject(DamageElementinterpEnum)); 25 26 26 27 /*Requested outputs*/ … … 47 48 void DamageEvolutionAnalysis::UpdateElements(Elements* elements,IoModel* iomodel,int analysis_counter,int analysis_type){/*{{{*/ 48 49 49 int finiteelement = P1Enum; 50 int finiteelement; 51 52 iomodel->Constant(&finiteelement,DamageElementinterpEnum); 50 53 51 54 /*Update elements: */ … … 75 78 void DamageEvolutionAnalysis::CreateNodes(Nodes* nodes,IoModel* iomodel){/*{{{*/ 76 79 77 int finiteelement = P1Enum; 80 int finiteelement; 81 82 iomodel->Constant(&finiteelement,DamageElementinterpEnum); 78 83 79 84 if(iomodel->domaintype!=Domain2DhorizontalEnum) iomodel->FetchData(1,MeshVertexonbaseEnum); … … 84 89 85 90 int stabilization; 86 int finiteelement = P1Enum;91 int finiteelement; 87 92 iomodel->Constant(&stabilization,DamageStabilizationEnum); 93 iomodel->Constant(&finiteelement,DamageElementinterpEnum); 88 94 89 95 IoModelToConstraintsx(constraints,iomodel,DamageSpcdamageEnum,DamageEvolutionAnalysisEnum,finiteelement); … … 469 475 damage_input = element->GetInput(DamageDEnum); _assert_(damage_input); 470 476 } 471 472 473 477 474 478 /*retrieve the desired type of equivalent stress*/ … … 509 513 510 514 /*Add input*/ 511 element->AddInput(DamageFEnum,f, P1Enum);515 element->AddInput(DamageFEnum,f,element->GetElementType()); 512 516 513 517 /*Clean up and return*/
Note:
See TracChangeset
for help on using the changeset viewer.