dymos icon indicating copy to clipboard operation
dymos copied to clipboard

Bug: Silent fail when setting vector valued ref/ref0 to vector valued state

Open JustinSGray opened this issue 2 years ago • 0 comments

Issue Type

  • [x] Bug
  • [ ] Enhancement
  • [ ] Docs
  • [ ] Miscellaneous

Description

In response to this SO question we tested out providing a vector valued ref/ref0 to a vector valued state. It should work, but doesn't.

Example

If a state is declared as size 2, then ref=[0.5,10] should be allowed. Dymos should then manage the num_nodes dimension when passing the ref down to OpenMDAO. Currently it just silently swallows the assignment.

JustinSGray avatar Dec 08 '21 17:12 JustinSGray