Skip to content

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

Merged
kejacobson merged 6 commits into
OpenMDAO:mainfrom
Asthelen:reuse_dumped_json
Sep 21, 2026
Merged

kejacobson merged 6 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
@kejacobson
kejacobson merged commit 5e25bdf into OpenMDAO:main Sep 21, 2026
4 checks passed
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.

2 participants