-
Notifications
You must be signed in to change notification settings - Fork 231
Zero compliance diag buffer before bsr_get_diag #1334
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
Zero compliance diag buffer before bsr_get_diag #1334
Conversation
Signed-off-by: Cucchi01 <[email protected]>
📝 WalkthroughWalkthroughAdded an explicit Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (4)newton/_src/**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
newton/**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (8)📓 Common learnings📚 Learning: 2025-09-09T11:03:41.928ZApplied to files:
📚 Learning: 2025-09-18T07:05:56.836ZApplied to files:
📚 Learning: 2025-12-13T17:26:39.791ZApplied to files:
📚 Learning: 2025-08-12T05:17:34.423ZApplied to files:
📚 Learning: 2025-09-26T05:58:21.013ZApplied to files:
📚 Learning: 2025-08-12T18:04:06.577ZApplied to files:
📚 Learning: 2026-01-13T03:11:40.556ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@Cucchi01's fix is merged in the Warp dev branch and will be available in the next nightly build (~3 hours from now), but we can't simply update Newton to point at the new dev build due to some new deprecation warnings that will cause various tests to fail since they look at test output (see #1305 from @christophercrouzet). I think it makes sense to take this change, but there should be a |
Signed-off-by: Cucchi01 <[email protected]>
|
@shi-eric Thank you for the quick feedback and for approving the Warp PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
9012541
Description
sp.bsr_get_diagleaves missing diagonal blocks untouched, which can propagate stale values; in my case this led to NaNs in some environments.compliance_mat_diagonalbefore callingbsr_get_diagin the implicit MPM rheology solve.I opened NVIDIA/warp#1170 to fix this at the source. In the meantime, I’m opening this local change in Newton to avoid the NaNs or other undesired behavior.
I’m not sure whether it’s better to wait for the Warp PR to be merged or to keep this safeguard here as well.
@gdaviet let me know what you prefer
Newton Migration Guide
Please ensure the migration guide for warp.sim users is up-to-date with the changes made in this PR.
docs/migration.rstis up-to dateBefore your PR is "Ready for review"
newton/tests/test_examples.py)pre-commit run -aSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.