Skip to content

Commit

Permalink
Added note that overriding setup_residuals in an ExplicitComponent is…
Browse files Browse the repository at this point in the history
… an error.
  • Loading branch information
robfalck committed Jul 16, 2024
1 parent 77a0d86 commit 3555800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion POEM_099.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ OpenMDAO currently allows inputs and outputs to be shaped based upon connections

This is similar to the issues that drove the need for a `setup_partials` method which allowed partials to be declared in `final_setup`, once the sizes of all inputs and outputs ad been resolved.

As of a result, OpenMDAO components will get a `setup_residuals` method which will allow `add_residual` to be called once sizes have been resolved.c
As of a result, OpenMDAO components will get a `setup_residuals` method which will allow `add_residual` to be called once sizes have been resolved.

- It is an error to define `setup_residuals` in an ExplicitComponent

## Example

Expand Down

0 comments on commit 3555800

Please sign in to comment.