diff --git a/funtofem/model/body.py b/funtofem/model/body.py index f5451c27..5efa75b6 100644 --- a/funtofem/model/body.py +++ b/funtofem/model/body.py @@ -1778,7 +1778,10 @@ def _distribute_struct_loads( "load": entry["load"], "hflux": entry["hflux"], } - + + if self.struct_id is None: + return + for ind, struct_id in enumerate(self.struct_id): if include_elastic: self._fixed_struct_loads[scenario_id][3 * ind : 3 * ind + 3] = (