Kitsune4px
Kitsune4px

Reputation: 5

Setting inputs for CaseIteratorDriver in OpenMDAO

What is the best way to set inputs in CaseIteratorDriver? An example shows direct assignment via: self.driver.case_inputs.param_name = [0,1,2] That doesn't seem to properly get handled when running CaseIteratorDriver in parallel. I tried setting them via self.driver.setsinputs(CaseArray({'x':[0,1,2]}) but that fails too. It appears CaseArray doesn't generate the 'generator' object that set_inputs is expecting. What classes do generate the correct object?

Upvotes: 0

Views: 96

Answers (1)

Justin Gray
Justin Gray

Reputation: 5710

Setting it to a list should have worked fine. What is the behavior you're seeing that makes you think it is not working in parallel?

How are you running it in parallel? By setting sequential=False?

Upvotes: 0

Related Questions