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

Added linear solver for cases where states solved via optimizer have input_initial=True #991

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

robfalck
Copy link
Contributor

Summary

This adds a linear solver directly to the StateIndependentsComp in such cases, since having it apply to the entire phase is generally overkill here.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

…en input_initial=True for one or more states.
@@ -513,8 +514,6 @@ def configure_solvers(self, phase):
newton.options['stall_limit'] = 3
newton.linesearch = om.BoundsEnforceLS()

# even though you don't need a nl_solver for connections, you still ln_solver since its implicit
if self.any_solved_segs or self._implicit_duration:
Copy link
Member

Choose a reason for hiding this comment

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

Should the next 2 lines be de-dented?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, didn't notice the line cut. This is fine.

@coveralls
Copy link

Coverage Status

coverage: 92.654% (+0.002%) from 92.652% when pulling 8673ce2 on robfalck:linear_solver_fix into b4675ac on OpenMDAO:master.

@robfalck robfalck merged commit 9ea3ecf into OpenMDAO:master Sep 14, 2023
9 checks passed
@robfalck robfalck deleted the linear_solver_fix branch August 14, 2024 15:30
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.

Incorrect total derivatives in some cases with connected states between phases.
3 participants