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

Refactored TimeComp to avoid unnecessary recalculation of partials #759

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

robfalck
Copy link
Contributor

@robfalck robfalck commented Jun 3, 2022

Summary

TimeComp was using compute_partials to evaluate the partials, but their values are entirely known at setup time and therefore should have their values set during declare_partials.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

Verified

This commit was signed with the committer’s verified signature.
Vrixyz Thierry Berger
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0004%) to 95.509% when pulling 82c10eb on robfalck:timecomp_efficiency into 85663d7 on OpenMDAO:master.

@robfalck robfalck merged commit 91dc2f4 into OpenMDAO:master Jun 3, 2022
@robfalck robfalck deleted the timecomp_efficiency branch August 25, 2022 16:08
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.

TimeComp has an unnecessary compute_partials method.
4 participants