Skip to content

Add option to reuse dumped json files in remote components - #247

Open
Asthelen wants to merge 5 commits into
OpenMDAO:mainfrom
Asthelen:reuse_dumped_json
Open

Add option to reuse dumped json files in remote components#247
Asthelen wants to merge 5 commits into
OpenMDAO:mainfrom
Asthelen:reuse_dumped_json

Conversation

@Asthelen

Copy link
Copy Markdown
Collaborator

This adds an option to reuse previously saved json files, if the dump_separate_json has been turned on. The new option, reuse_dumped_json, will also automatically set dump_separate_json to true. This allows you to call the same design on the client side without having to rerun the analysis on the server side. Therefore you should be able to restart an optimization or list of analyses without needing a pyoptsparse hot start file.

As a warning, json files will still be named based on the analysis number in the current run, so there may be cases where existing json files will be overwritten: for example, if you start with json files from 3 designs, and you use two of them but then try to run a third, different design, the third existing json file will be overwritten. I can try to change this if anyone prefers.

@Asthelen
Asthelen requested a review from kejacobson September 11, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant