Skip to content

Commit

Permalink
Fix for openmdao warning messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth-T-Moore committed Jul 6, 2023
1 parent 5a5e729 commit fa62e20
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 fa62e20

Please sign in to comment.