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

Fixes an issue where parameters are promoted twice in some cases. #429

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

robfalck
Copy link
Contributor

Summary

Fixes an issue where parameters are promoted twice (once using '*', once explicitly).

To fix this in the segments group of the SolveIVP transcription, we simply promote the parameters up from each segments_i component.

To fix this in the phases group of Trajectory, promotion is delayed until configure. We then determine the path of all parameters to be promoted to the phase level, and remove those from the set of all inputs. When this modified set is promoted, it will not include the parameter paths which have already been promoted.

Related Issues

Status

  • Ready for merge

Backwards incompatibilities

None

New Dependencies

None

…ce explicitly). pending updates to OpenMDAO caught these.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 96.084% when pulling 3818e01 on robfalck:solve_ivp_double_promote_fix into 90730ab on OpenMDAO:master.

@robfalck robfalck merged commit 8d9c80b into OpenMDAO:master Nov 2, 2020
@robfalck robfalck deleted the solve_ivp_double_promote_fix branch December 17, 2020 13:38
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.

Parameters are promoted twice in the SolveIVP transcription and from the phases group in Trajectory.
3 participants