Skip to content

Commit

Permalink
Fix bug when DV_dict is None (smdogroup#290)
Browse files Browse the repository at this point in the history
Unexpected behavior when DV_dict was None or empty, need to check that it exists before passing it to the AIM.
  • Loading branch information
bburke38 authored Jan 24, 2024
1 parent 53aad02 commit 2ce0820
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tacs/caps2tacs/tacs_aim.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def setup_aim(
DV_dict[dv.name] = dv.DV_dictionary

# update the DV dict
self.aim.input.Design_Variable = DV_dict
if DV_dict:
self.aim.input.Design_Variable = DV_dict

if self._dict_options is not None:
self._set_dict_options()
Expand Down

0 comments on commit 2ce0820

Please sign in to comment.