Skip to content

Commit

Permalink
Fix for MPI slowdown. (#977)
Browse files Browse the repository at this point in the history
* Fix for MPI slowdown in setup.
  • Loading branch information
Kenneth-T-Moore authored Sep 1, 2023
1 parent b8c6a1b commit b929f29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dymos/trajectory/trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ def _configure_parameters(self):
"""
parameter_options = self.parameter_options
promoted_inputs = []
params_by_phase = self._get_phase_parameters()

for name, options in parameter_options.items():
promoted_inputs.append(f'parameters:{name}')
targets = options['targets']
Expand Down Expand Up @@ -490,7 +492,6 @@ def _configure_parameters(self):

# If metadata is unspecified, use introspection to find
# it based on common values among the targets.
params_by_phase = self._get_phase_parameters()

targets = {phase_name: phs_params[targets_per_phase[phase_name]]
for phase_name, phs_params in params_by_phase.items()
Expand Down

0 comments on commit b929f29

Please sign in to comment.