Closed florentLutz closed 1 year ago
The problem comes from the fact that in some components of the code variable foo
copies the shape of bar
, but not in another one, even if foo is not used. This, however, only happens when using the run_system
so it is bound to unit_tests.
A simple workaround is to declare foo as an input with a proper copy shape but not use it.
Describe the bug There can be an issue with the run_system function when giving in argument a group which contains components that have inputs which copy the shape of a different input
To Reproduce The following code provides with a simple example of how to make the error happen : test_copy_shape.zip
Expected behavior The expected behaviour would be that there are no None shape which would prevent OpenMDAO from crashing.
Error message
Environment
Additional context Weirdly enough replacing baz with data:baz or removing the data in front of foo and bar will solve the issue on this test case