Skip to content

Commit

Permalink
Allow BalanceComp to be sized from rhs_val
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Moore authored and Kenneth Moore committed Aug 5, 2020
1 parent acf7f8a commit 3e2ba45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmdao/components/balance_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def add_balance(self, name, eq_units=None, lhs_name=None, rhs_name=None, rhs_val
self._state_vars[name] = options

if val is None:
# If user doesn't specify initial guess for val, we cann size problem from initial
# If user doesn't specify initial guess for val, we can size problem from initial
# rhs_val.
if 'shape' not in kwargs and not np.isscalar(rhs_val):
kwargs['shape'] = rhs_val.shape
Expand Down

0 comments on commit 3e2ba45

Please sign in to comment.