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

Trajectory.phases subgroup is now available before setup. #782

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

robfalck
Copy link
Contributor

Summary

In situations where the user might want to change attributes of the Trajectory.phases ParallelGroup, such as setting solvers, this should be done before setup time.
This was previously not possible because phases wasn't instantiated until setup.
This pull request instantiates phases at Trajectory instantiation.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

Added finite burn orbit raise test with connected phases to test access to the phases subgroup before setup.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.001%) to 95.462% when pulling 1225b91 on robfalck:i776 into dac3541 on OpenMDAO:master.

@robfalck robfalck requested a review from naylor-b July 13, 2022 18:23
@@ -17,7 +17,7 @@
class TestExampleTwoBurnOrbitRaiseMPI(unittest.TestCase):
Copy link
Member

Choose a reason for hiding this comment

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

Should require petsc in addition to MPI here

@robfalck robfalck merged commit 64b044a into OpenMDAO:master Jul 13, 2022
@robfalck robfalck deleted the i776 branch August 25, 2022 16:07
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.

Make Trajectory.phases attribute available before setup.
3 participants