-
Notifications
You must be signed in to change notification settings - Fork 68
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 the ability to use a callable that returns a System as an ODE #528
Conversation
…urns an OpenMDAO system, where the callable has the arguments (num_nodes=<int>, **ode_init_kwargs). Added some documentation. Added tests for invalid callable ODEs with appropriate error messages. Added test for copying an existing ODE instance via deepcopy, though this is discouraged in the documentation.
….19.0 upgrade guide.
@use_tempdirs | ||
class TestBrachExecCompODE(unittest.TestCase): | ||
|
||
def tearDown(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is redundant when using use_tempdirs.
self.assertEqual(expected, str(e.exception)) | ||
|
||
|
||
@use_tempdirs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add use_tempdirs on an ExplicitComponent.
@use_tempdirs | ||
class TestUpgrade_0_19_0(unittest.TestCase): | ||
|
||
def tearDown(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too.
Summary
Users may now specify a callable that returns an ODE System as the ode_class for a Phase.
This will allow ExecComps to be used as ODEs via a lambda.
Related Issues
Status
Backwards incompatibilities
None
New Dependencies
None