From 6cd4e54de084bc064c89eb2727ec6648b9c8ef08 Mon Sep 17 00:00:00 2001 From: little bunny <92755619+SaltySodaBunny@users.noreply.github.com> Date: Tue, 5 Dec 2023 15:03:19 -0500 Subject: [PATCH] Remove unused var opts in _setup_var_data, avoid potential memory waste --- openmdao/components/meta_model_structured_comp.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/openmdao/components/meta_model_structured_comp.py b/openmdao/components/meta_model_structured_comp.py index f0a422e7af..b82d343aac 100644 --- a/openmdao/components/meta_model_structured_comp.py +++ b/openmdao/components/meta_model_structured_comp.py @@ -144,10 +144,6 @@ def _setup_var_data(self): Instantiate surrogates for the output variables that use the default surrogate. """ interp_method = self.options['method'] - - opts = {} - if 'interp_options' in self.options: - opts = self.options['interp_options'] for name, train_data in self.training_outputs.items(): self.interps[name] = InterpND(method=interp_method, points=self.inputs, values=train_data,