Skip to content

Commit

Permalink
When Trajectory.phases is a ParallelPhase, always add a NonlinearBloc…
Browse files Browse the repository at this point in the history
…kJac if there are direct connections.
  • Loading branch information
robfalck committed Nov 17, 2023
1 parent 69f5632 commit 3a19fc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dymos/trajectory/trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,8 +1016,7 @@ def _configure_solvers(self):
These solvers can be changed through the
'default_nonlinear_solver' and 'default_linear_solver' options.
"""
if self._has_connected_phases and MPI:

if self._has_connected_phases:
if isinstance(self.phases.nonlinear_solver, om.NonlinearRunOnce):
if self.options['default_nonlinear_solver'] is None:
msg = f'{self.msginfo}: Setting phases.nonlinear_solver to `om.NonlinearBlockJac(iprint=0)`.\n' \
Expand Down

0 comments on commit 3a19fc6

Please sign in to comment.