Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pycycle/mp_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ def configure(self):
# then issue connections between the design and off-design points

for param, (val, units) in self._cycle_params.items():
self.set_input_defaults(name=param, val=val, units=units)

self.promotes(self._des_pnt.name, inputs=[param])
# set the default value for the design point
self.set_input_defaults(name=f"{self._des_pnt.name}.{param}", val=val, units=units)
# set the default value for all off-design points
for pnt in self._od_pnts:
self.promotes(pnt.name, inputs=[param])
self.set_input_defaults(name=f"{pnt.name}.{param}", val=val, units=units)


for src, target in self._des_od_connections:
Expand Down
Loading