Skip to content

Fix divide-by-zero handling in truss computations - #14

Merged
cmccomb merged 1 commit into
mainfrom
codex/fix-divide-by-zero-warnings
Aug 20, 2026
Merged

cmccomb merged 1 commit into
mainfrom
codex/fix-divide-by-zero-warnings

Conversation

@cmccomb

@cmccomb cmccomb commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • guard member direction, stiffness, and safety factor calculations against zero lengths or zero forces
  • add safe ratio helper to preserve thickness/height ratios when reference dims are zero
  • extend plot_truss test and add new tests covering zero-force and zero-length scenarios to ensure no runtime warnings

Testing

  • Not run (not requested)

@cmccomb
cmccomb changed the base branch from main to v0.1.1 March 4, 2026 03:03
@cmccomb
cmccomb changed the base branch from v0.1.1 to main August 20, 2026 00:51
@cmccomb cmccomb closed this Aug 20, 2026
@cmccomb cmccomb reopened this Aug 20, 2026
@cmccomb
cmccomb merged commit 5210638 into main Aug 20, 2026
10 checks passed
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.

1 participant