Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify mode for tests that check derivatives #49

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

swryan
Copy link
Contributor

@swryan swryan commented Mar 14, 2024

As of OpenMDAO/OpenMDAO#3142, the optimal deriv direction (assuming the user doesn't specify mode manually) is now determined separately for the driver and for any compute_totals calls that don't use the driver's design vars and responses as of and wrt. (The optimal direction is determined by the relative sizes of the ofs vs the wrts. If ofs are smaller, fwd mode is used, else rev mode.)

Since these tests don't invoke a Driver, we specify the direction as fwd during setup so we get the expected keys from check_totals.

@swryan swryan merged commit 79aa4b7 into OpenMDAO:master Mar 14, 2024
2 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.

3 participants