Skip to content

Commit 6778a3a

Browse files
committed
ruff format
1 parent bb9378f commit 6778a3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/demos/plasticity_mohr_coulomb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,7 @@ def r_f_plastic(sigma_local, dlambda):
450450
# JSH: Why is this comparison with eps? eps is essentially 0.0 when doing
451451
# <=. AL: In the case of yielding = 1e-15 - 1e-16 (or we can choose the
452452
# tolerance), the plastic branch will be chosen, which is more expensive.
453-
return jax.lax.cond(yielding <= 0.0, r_f_elastic, r_f_plastic, sigma_local,
454-
dlambda)
453+
return jax.lax.cond(yielding <= 0.0, r_f_elastic, r_f_plastic, sigma_local, dlambda)
455454

456455

457456
def r(x_local, deps_local, sigma_n_local):

0 commit comments

Comments
 (0)