Skip to content

Commit

Permalink
tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Moore authored and Kenneth Moore committed Jan 29, 2021
1 parent f078f23 commit d86bb5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openmdao/core/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,10 @@ def _compute_approx_coloring(self, recurse=False, **overrides):
self.declare_partials('*', '*', method=self._coloring_info['method'])
except AttributeError: # this system must be a group
from openmdao.core.component import Component
from openmdao.core.indepvarcomp import IndepVarComp
from openmdao.components.exec_comp import ExecComp
for s in self.system_iter(recurse=True, typ=Component):
if not isinstance(s, ExecComp):
if not isinstance(s, ExecComp) and not isinstance(s, IndepVarComp):
s.declare_partials('*', '*', method=self._coloring_info['method'])
self._setup_partials()

Expand Down

0 comments on commit d86bb5c

Please sign in to comment.