Skip to content
Permalink
Browse files

Merge pull request #13492 from tophmatthews/creep_fix_12650

Small AD Creep fix
  • Loading branch information...
dschwen committed May 30, 2019
2 parents a59b573 + 6229210 commit 7e922db28a435502eb1a5a20076db8454ac5f804
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/tensor_mechanics/src/materials/ADSingleVariableReturnMappingSolution.C
@@ -360,7 +360,7 @@ ADSingleVariableReturnMappingSolution<compute_stage>::updateBounds(const ADReal
// Update upper/lower bounds as applicable
if (residual * init_resid_sign < 0.0 && scalar < scalar_upper_bound)
{
scalar_upper_bound = MetaPhysicL::raw_value(scalar);
scalar_upper_bound = scalar;
if (scalar_upper_bound < scalar_lower_bound)
{
scalar_upper_bound = scalar_lower_bound;
@@ -373,7 +373,7 @@ ADSingleVariableReturnMappingSolution<compute_stage>::updateBounds(const ADReal
// This ensures that if we encounter multiple roots, we pick the lowest one.
else if (residual * init_resid_sign > 0.0 && scalar > scalar_lower_bound &&
scalar < scalar_upper_bound)
scalar_lower_bound = MetaPhysicL::raw_value(scalar);
scalar_lower_bound = scalar;
}

template <ComputeStage compute_stage>

0 comments on commit 7e922db

Please sign in to comment.
You can’t perform that action at this time.