From 60f590e6fba4be51786e563b9d29d62ef34cf333 Mon Sep 17 00:00:00 2001 From: kccwing <60852830+kccwing@users.noreply.github.com> Date: Thu, 7 Nov 2024 13:25:58 +0000 Subject: [PATCH] Bug fix for generate_full_structure --- sharpy/utils/generate_cases.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharpy/utils/generate_cases.py b/sharpy/utils/generate_cases.py index cb2a59b15..112139145 100644 --- a/sharpy/utils/generate_cases.py +++ b/sharpy/utils/generate_cases.py @@ -531,12 +531,12 @@ def generate_full_structure(self, self.beam_number = beam_number self.body_number = np.zeros((num_elem,), dtype=int) self.app_forces = app_forces - if isinstance(self.lumped_mass_nodes, np.ndarray): + if isinstance(lumped_mass_nodes, np.ndarray): self.lumped_mass_nodes = lumped_mass_nodes self.lumped_mass = lumped_mass self.lumped_mass_inertia = lumped_mass_inertia self.lumped_mass_position = lumped_mass_position - if isinstance(self.lumped_mass_mat_nodes, np.ndarray): + if isinstance(lumped_mass_mat_nodes, np.ndarray): self.lumped_mass_mat_nodes = lumped_mass_mat_nodes self.lumped_mass_mat = lumped_mass_mat