Closed akrdunn closed 3 years ago
This also seems to be happening for a single valued parameter with dynamic=False. So it seems like any parameter with shape != num_nodes
@akrdunn When you have a chance please pull the latest commit from master and see if this works for you all.
Summary of Issue
When attempting to use grid refinement with a parameter with size > 1, on the second iteration an error is produced related to resizing the parameter.
Issue Type
Description
If a parameter is added to a phase with a size > 1 (dynamic or not), and grid refinement is attempted, during the first refinement attempt an error will occur such as:
In this example the parameter was of length 40, and I believe the code is attempting to resize to the new number of nodes (75).
Example
The min_time_climb notebook here simply adds a dummy parameter to the "supersonic interceptor minimum time climb" example: https://github.com/akrdunn/dymos_bug
Environment
Operating System: Windows 10 Python environment: Anaconda Python 3.8.3 Packages: OpenMDAO 3.7.0, Dymos 1.0.0