Commit 8d616580 authored by mmpe's avatar mmpe

propagate additional_input from AEPCostModelComponent to super.__init__

parent e5e7c474
......@@ -158,8 +158,9 @@ class CostModelComponent(ExplicitComponent):
class AEPCostModelComponent(CostModelComponent):
def __init__(self, input_keys, n_wt, cost_function, cost_gradient_function=None,
output_unit="", additional_output=[], max_eval=None):
output_unit="", additional_input=[], additional_output=[], max_eval=None):
CostModelComponent.__init__(self, input_keys, n_wt, cost_function,
cost_gradient_function=cost_gradient_function,
output_key="AEP", output_unit=output_unit,
additional_output=additional_output, max_eval=max_eval, income_model=True)
additional_input=additional_input, additional_output=additional_output,
max_eval=max_eval, income_model=True)
......@@ -8,6 +8,7 @@ import openmdao
class EasyDriverBase():
expected_cost = 1
def get_desvar_kwargs(self, model, desvar_name, desvar_values):
if len(desvar_values) == 4:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment