Skip to content

Commit

Permalink
Update only property name for fraction of fines.
Browse files Browse the repository at this point in the history
  • Loading branch information
loroberge committed Jun 26, 2023
1 parent edfc7bb commit dff32fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions landlab/components/bedrock_landslider/bedrock_landslider.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __init__(
landslides_return_time=1e5,
rho_r=2700,
grav=9.81,
fraction_fines=0,
fraction_fines_LS=0,
phi=0,
max_pixelsize_landslide=1e9,
seed=2021,
Expand All @@ -264,7 +264,7 @@ def __init__(
Return time for stochastic landslide events to occur
rho_r : float, optional
Bulk density rock [m L^-3].
fraction_fines : float
fraction_fines_LS : float
Fraction of permanently suspendable fines in bedrock
Value must be between 0 and 1 [-].
phi : float, optional
Expand Down Expand Up @@ -313,7 +313,7 @@ def __init__(
self._cohesion_eff = cohesion_eff
self._rho_r = rho_r
self._grav = grav
self._fraction_fines = fraction_fines
self._fraction_fines_LS = fraction_fines_LS
self._phi = phi
self._landslides_return_time = landslides_return_time
self._max_pixelsize_landslide = max_pixelsize_landslide
Expand All @@ -332,9 +332,9 @@ def __init__(
if phi >= 1.0 or phi < 0.0:
raise ValueError(f"Porosity must be between 0 and 1 ({phi})")

if fraction_fines > 1.0 or fraction_fines < 0.0:
if fraction_fines_LS > 1.0 or fraction_fines_LS < 0.0:
raise ValueError(
f"Fraction of fines must be between 0 and 1 ({fraction_fines})"
f"Fraction of fines must be between 0 and 1 ({fraction_fines_LS})"
)

# Set seed
Expand All @@ -348,7 +348,7 @@ def fraction_fines(self):
Fraction of permanently suspendable fines in bedrock.
Value must be between 0 and 1 [-].
"""
return self._fraction_fines
return self._fraction_fines_LS

@property
def phi(self):
Expand Down Expand Up @@ -612,9 +612,9 @@ def _landslide_erosion(self, dt):
store_cumul_volume += store_volume
if upstream_count > 0:
landslide_sed_in[crit_node] += (store_volume / dt) * (
1.0 - self._fraction_fines
1.0 - self._fraction_fines_LS
)
suspended_sed += (store_volume / dt) * self._fraction_fines
suspended_sed += (store_volume / dt) * self._fraction_fines_LS

self._landslides_size.append(upstream_count)
self._landslides_volume.append(store_volume)
Expand Down

0 comments on commit dff32fc

Please sign in to comment.