Skip to content

Commit

Permalink
Fix for openmdao warning messages. (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth-T-Moore authored Jul 10, 2023
1 parent 5a5e729 commit de02e5a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,15 @@ 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, ...]

# 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),
Expand Down

0 comments on commit de02e5a

Please sign in to comment.