OpenMDAO/OpenMDAO-Framework — Issue #788: A component's execution counter still increments when its derivatives are being used to calculate its outputs.
Author: Kenneth-T-Moore
Created: 2012-01-23 20:54:05+00:00
State: open

When a driver calculates the gradient of its workflow by finite difference, a component in that workflow can use an existing calculate_first_derivatives method to generate its outputs instead of running the component. When this happens, the execution counter should not increment because this is generally much faster than a full execution.

To solve this, the increment of exec_count needs to be moved.