You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a static parameter that has a vector size in an ODE. I use add_parameter to allow the value to be accessed at the top of the model. If I add the parameter with val=val, it works, but if I use shape=shape, where the shape is val.shape, I get a size mismatch error:
builtins.ValueError: 'traj.phases.phase0' <class Phase>: The source and target shapes do not match or are ambiguous for the connection 'traj.phases.phase0.param_comp.parameter_vals:aircraft:wing:sweep_distribution' to 'traj.phases.phase0.rhs_disc.p1.aircraft:wing:sweep_distribution'. The source shape is (1,) but the target shape is (3,).
Operating System: <i.e. OS X 10.14.6, Windows 10, Ubuntu 16.04>
Python environment: <i.e. Anaconda Python 3.7.1>
Packages: <versions of Dymos, OpenMDAO, and other pertinent Python packages. You can just paste the output of pip freeze here.>
The text was updated successfully, but these errors were encountered:
Issue Type
Description
I have a static parameter that has a vector size in an ODE. I use
add_parameter
to allow the value to be accessed at the top of the model. If I add the parameter withval=val
, it works, but if I useshape=shape
, where the shape is val.shape, I get a size mismatch error:Example included.
Example
https://gist.github.com/Kenneth-T-Moore/47c9329d506918463bbe7eacc2de5dea
Environment
Operating System: <i.e. OS X 10.14.6, Windows 10, Ubuntu 16.04>
Python environment: <i.e. Anaconda Python 3.7.1>
Packages: <versions of Dymos, OpenMDAO, and other pertinent Python packages. You can just paste the output of
pip freeze
here.>The text was updated successfully, but these errors were encountered: