Changeset 16214
- Timestamp:
- 09/20/13 12:17:51 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/damage_core.cpp
r16188 r16214 30 30 31 31 femmodel->SetCurrentConfiguration(DamageEvolutionAnalysisEnum); 32 solutionsequence_ damage_nonlinear(femmodel);32 solutionsequence_linear(femmodel); 33 33 34 34 if(save_results){ -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r16208 r16214 7126 7126 int i; 7127 7127 IssmDouble values[numdof]; 7128 int *doflist = NULL; 7128 IssmDouble max_damage; 7129 int *doflist = NULL; 7129 7130 7130 7131 /*Get dof list: */ 7131 7132 GetDofList(&doflist,NoneApproximationEnum,GsetEnum); 7133 7134 /*Get user-supplied max_damage: */ 7135 this->parameters->FindParam(&max_damage,DamageMaxDamageEnum); 7132 7136 7133 7137 /*Use the dof list to index into the solution vector: */ … … 7136 7140 /*Check solution*/ 7137 7141 if(xIsNan<IssmDouble>(values[i])) _error_("NaN found in solution vector"); 7142 /*Enforce D < max_damage and D > 0 */ 7143 if(values[i]>max_damage) values[i]=max_damage; 7144 else if(values[i]<0) values[i]=0; 7138 7145 } 7139 7146 -
issm/trunk-jpl/src/c/classes/Loads/Pengrid.cpp
r16206 r16214 738 738 parameters->FindParam(&max_damage,DamageMaxDamageEnum); 739 739 740 //Figure out if damage is over max_damage, in which case, this penalty needs to be activated. 740 //Figure out if damage>max_damage, in which case, this penalty needs to be activated. 741 //Would need to do the same for damage<0 if penalties are used. For now, ConstraintStatex 742 //is not called in solutionsequence_damage_nonlinear, so no penalties are applied. 741 743 742 744 if (damage>max_damage){
Note:
See TracChangeset
for help on using the changeset viewer.