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

Fix substepping issue for Rosenbrock solver with inline LU decomposition #717

Merged
merged 15 commits into from
Jan 31, 2025

Conversation

sjsprecious
Copy link
Collaborator

@sjsprecious sjsprecious commented Jan 29, 2025

This PR fixes a potential issue of using Rosenbrock solver with inline LU decomposition algorithm, when a substepping happens.

Basically we need to:

  • re-compute the Jacobian matrix after each sub step because the Jacobian matrix is now modified by the LU decomposition algorithm in place
  • only keep the last_alpha code for the non-inline LU decomposition algorithm.

fix #704

@sjsprecious sjsprecious self-assigned this Jan 29, 2025
@sjsprecious sjsprecious added the bug Something isn't working label Jan 29, 2025
@sjsprecious sjsprecious added this to the MICM Paper milestone Jan 29, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.49%. Comparing base (6465d8e) to head (5bb8d60).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #717   +/-   ##
=======================================
  Coverage   94.48%   94.49%           
=======================================
  Files          63       63           
  Lines        4369     4376    +7     
=======================================
+ Hits         4128     4135    +7     
  Misses        241      241           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@mattldawson mattldawson left a comment

Choose a reason for hiding this comment

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

nice!

@sjsprecious sjsprecious merged commit 57b2cb2 into main Jan 31, 2025
27 checks passed
@sjsprecious sjsprecious deleted the fix_ros_substep branch January 31, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to update the workflow for the time substepping of Rosenbrock solver with inline LU algorithm
4 participants