Skip to content

Commit

Permalink
fix meshmaker
Browse files Browse the repository at this point in the history
  • Loading branch information
keurfonluu committed Feb 22, 2022
1 parent af8db14 commit 0e38835
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions toughio/meshmaker/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,12 @@ def append(sizes, n_increment, size, type="uniform", radius_ref=None):
sizes += [size] * n_increment

elif type == "logarithmic":
if not len(sizes):
raise ValueError()
if not radius_ref:
if not len(sizes):
raise ValueError()

radius_ref = sizes[-1]

radius_ref = radius_ref if radius_ref else sizes[-1]
f = get_factor(n_increment, size, radius_ref)

sizes.append(f * radius_ref)
Expand Down

0 comments on commit 0e38835

Please sign in to comment.