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 nonlinear solver convergence check #72

Merged
merged 2 commits into from
Feb 24, 2024
Merged

Fix nonlinear solver convergence check #72

merged 2 commits into from
Feb 24, 2024

Conversation

zfergus
Copy link
Member

@zfergus zfergus commented Feb 24, 2024

No description provided.

Copy link

codecov bot commented Feb 24, 2024

Codecov Report

Attention: Patch coverage is 54.34783% with 21 lines in your changes are missing coverage. Please review.

Project coverage is 87.51%. Comparing base (d65d1b1) to head (1df1952).

Files Patch % Lines
src/polysolve/nonlinear/Criteria.cpp 27.77% 13 Missing ⚠️
src/polysolve/nonlinear/Solver.cpp 70.37% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
+ Coverage   87.27%   87.51%   +0.23%     
==========================================
  Files          48       48              
  Lines        2028     2026       -2     
==========================================
+ Hits         1770     1773       +3     
+ Misses        258      253       -5     
Flag Coverage Δ
polysolve 87.51% <54.34%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -325,56 +323,65 @@ namespace polysolve::nonlinear
log_and_throw_error(m_logger, "[{}][{}] Gradient is nan; stopping", descent_strategy_name(), m_line_search->name());
}

// Check convergence without these values to avoid impossible linear solves.
m_current.xDelta = NaN;
m_current.xDeltaDotGrad = NaN;
Copy link
Member Author

Choose a reason for hiding this comment

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

These were the missing lines.

@zfergus zfergus merged commit 1b142d3 into main Feb 24, 2024
8 of 9 checks passed
@zfergus zfergus deleted the update-log branch February 24, 2024 06:31
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