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

Small lint fix for bench fail #1415

Merged
merged 1 commit into from May 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion openmdao/core/group.py
Expand Up @@ -1822,7 +1822,7 @@ def _guess_nonlinear(self):
"""
# let any lower level systems do their guessing first
if self._has_guess:
for isub, (sub, loc)in enumerate(self._all_subsystem_iter()):
for isub, (sub, loc) in enumerate(self._all_subsystem_iter()):
# TODO: could gather 'has_guess' information during setup and be able to
# skip transfer for subs that don't have guesses...
self._transfer('nonlinear', 'fwd', isub)
Expand Down
2 changes: 1 addition & 1 deletion openmdao/solvers/linear/linear_block_gs.py
Expand Up @@ -19,7 +19,7 @@ def _single_iteration(self):
vec_names = self._vec_names

if mode == 'fwd':
for isub, (subsys, local)in enumerate(system._all_subsystem_iter()):
for isub, (subsys, local) in enumerate(system._all_subsystem_iter()):
if self._rel_systems is not None and subsys.pathname not in self._rel_systems:
continue
for vec_name in vec_names:
Expand Down
2 changes: 1 addition & 1 deletion openmdao/solvers/nonlinear/nonlinear_block_gs.py
Expand Up @@ -228,7 +228,7 @@ def _run_apply(self):
outputs_n = outputs._data.copy()

self._solver_info.append_subsolver()
for isub, (subsys, local)in enumerate(system._all_subsystem_iter()):
for isub, (subsys, local) in enumerate(system._all_subsystem_iter()):
system._transfer('nonlinear', 'fwd', isub)
if local:
subsys._solve_nonlinear()
Expand Down
2 changes: 1 addition & 1 deletion openmdao/solvers/solver.py
Expand Up @@ -676,7 +676,7 @@ def _gs_iter(self):
Perform a Gauss-Seidel iteration over this Solver's subsystems.
"""
system = self._system()
for isub, (subsys, local)in enumerate(system._all_subsystem_iter()):
for isub, (subsys, local) in enumerate(system._all_subsystem_iter()):
system._transfer('nonlinear', 'fwd', isub)

if local:
Expand Down