Skip to content

Remove inclusion of all defaults in aviary_inputs#819

Merged
Kenneth-T-Moore merged 11 commits intoOpenMDAO:mainfrom
jkirk5:defaults
Aug 13, 2025
Merged

Remove inclusion of all defaults in aviary_inputs#819
Kenneth-T-Moore merged 11 commits intoOpenMDAO:mainfrom
jkirk5:defaults

Conversation

@jkirk5
Copy link
Copy Markdown
Contributor

@jkirk5 jkirk5 commented Jul 17, 2025

Summary

Removed code that adds all defaults to the AviaryProblem's aviary_inputs during the call load_inputs(). These defaults are now handled directly by OpenMDAO for Aviary inputs/outputs. By removing these defaults, it is now possible to know if a variable was requested by the user (and happened to be the default value) vs. the user not specifying, knowledge of which is important to fix several bugs in the code.

Some variables still require hardcoded setting as they are directly called for by the AviaryProblem/AviaryGroup. They can likely be removed if there are checks that the variable exists first in the code that needs those values

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

@Kenneth-T-Moore
Copy link
Copy Markdown
Member

Is this missing the actual removal of the set defaults?

@jkirk5
Copy link
Copy Markdown
Contributor Author

jkirk5 commented Jul 21, 2025

Is this missing the actual removal of the set defaults?

I found out the actual changes on my local branch were unpushed. Fixed up the remaining tests and it is ready for review now

@jkirk5 jkirk5 requested a review from Kenneth-T-Moore July 29, 2025 15:56
types=AviaryValues,
desc='collection of Aircraft/Mission specific options',
)
add_aviary_option(self, Aircraft.LandingGear.DRAG_COEFFICIENT)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this is one I missed.

Comment thread aviary/utils/process_input_decks.py Outdated
Comment thread aviary/utils/process_input_decks.py Outdated
@jkirk5 jkirk5 added this pull request to the merge queue Aug 11, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 11, 2025
@Kenneth-T-Moore Kenneth-T-Moore added this pull request to the merge queue Aug 13, 2025
Merged via the queue into OpenMDAO:main with commit c87a660 Aug 13, 2025
6 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