Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landslides: add min threshold to critical acceleration #10427

Merged
merged 2 commits into from
Mar 7, 2025
Merged

Conversation

catarinaquintela
Copy link
Contributor

Added a minimum threshold to the critical acceleration, calculated in some landslide models.

@micheles micheles added this to the Engine 3.24.0 milestone Mar 7, 2025
@@ -37,9 +37,9 @@ def critical_accel(
print(crit_accel)
print("crit_accel")
if np.isscalar(crit_accel):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually in such cases one defines a constant, something like

CRIT_ACCEL_MIN = 0.0001

@micheles micheles merged commit 5911d9a into master Mar 7, 2025
7 checks passed
@micheles micheles deleted the crit_accel branch March 7, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants