Skip to content

Commit

Permalink
removed self.comm.size > 1 from Trajectory condition that triggers us…
Browse files Browse the repository at this point in the history
…e of NonlinearBlockJac/PetscKrylov. The solvers are needed in the presence of MPI regardless of number of procs.
  • Loading branch information
robfalck committed Nov 17, 2023
1 parent a2511a1 commit 69f5632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dymos/trajectory/trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +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 and self.comm.size > 1:
if self._has_connected_phases and MPI:

if isinstance(self.phases.nonlinear_solver, om.NonlinearRunOnce):
if self.options['default_nonlinear_solver'] is None:
Expand Down

0 comments on commit 69f5632

Please sign in to comment.