From fa62e2063c5a6474908b38da667d470a1a4723d2 Mon Sep 17 00:00:00 2001 From: "Kenneth T. Moore" Date: Thu, 6 Jul 2023 08:04:07 -0400 Subject: [PATCH] Fix for openmdao warning messages. --- dymos/transcriptions/explicit_shooting/ode_evaluation_group.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dymos/transcriptions/explicit_shooting/ode_evaluation_group.py b/dymos/transcriptions/explicit_shooting/ode_evaluation_group.py index 1387f0411..682c80e71 100644 --- a/dymos/transcriptions/explicit_shooting/ode_evaluation_group.py +++ b/dymos/transcriptions/explicit_shooting/ode_evaluation_group.py @@ -216,6 +216,7 @@ def _configure_params(self): if options['static_target']: src_idxs = None + shape = None else: src_rows = np.zeros(vec_size, dtype=int) src_idxs = om.slicer[src_rows, ...] @@ -223,7 +224,7 @@ def _configure_params(self): # Promote targets from the ODE for tgt in targets: self.promotes('ode', inputs=[(tgt, var_name)], src_indices=src_idxs, - src_shape=options['shape']) + src_shape=shape) if targets: self.set_input_defaults(name=var_name, val=np.ones(shape),