Skip to content

Commit 2ccd61a

Browse files
authored
Merge pull request #484 from llnl/tinyChanges
Fixed typo in ShadowIvanoviSALEDamageModel.py file and added guard to JohnsonCookStrength
2 parents f4ae3cc + 7be429a commit 2ccd61a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Damage/ShadowIvanoviSALEDamageModel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(self, *args, **kwargs):
118118
"criticalDamageThreshold",
119119
"mask"]
120120
for iarg, argval in enumerate(args):
121-
damage_kwargs[kward_order[iarg]] = argval
121+
damage_kwargs[kwarg_order[iarg]] = argval
122122

123123
# Process any keyword arguments. Note we already removed any deprecated keywords.
124124
for argname in kwargs:

src/SolidMaterial/JohnsonCookStrength.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ JohnsonCookStrength(const SolidEquationOfState<Dimension>& eos,
4747
mShearModulusScaling(shearModulusScaling) {
4848
VERIFY2(mEpsdot0 > 0.0,
4949
"JohnsonCookStrength ERROR: reference strain-rate must be greater than zero.");
50+
VERIFY2(mEpsdotmin > 0.0,
51+
"JohnsonCookStrength ERROR: minimum strain-rate must be greater than zero.");
5052
VERIFY2(mTmelt > mTroom,
5153
"JohnsonCookStrength ERROR: Tmelt must be greater than or equal Troom.");
5254
VERIFY2((not shearModulusScaling) or mu0 > 0.0,

0 commit comments

Comments
 (0)