From 4c0bef69c4bbe0ccf73c6b0a05ebf4e4a74b1513 Mon Sep 17 00:00:00 2001 From: Tim Brooks <41971846+timryanb@users.noreply.github.com> Date: Tue, 23 Apr 2024 10:49:32 -0400 Subject: [PATCH 1/4] Adding option to prevent OpenMDAO from suppressing tecplot file writing when using `group_by_pre_opt_post` feature --- openaerostruct/mphys/lift_distribution.py | 2 ++ openaerostruct/mphys/surface_contours.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/openaerostruct/mphys/lift_distribution.py b/openaerostruct/mphys/lift_distribution.py index 056a70eed..aded02ccc 100644 --- a/openaerostruct/mphys/lift_distribution.py +++ b/openaerostruct/mphys/lift_distribution.py @@ -42,6 +42,8 @@ def setup(self): nx, ny, _ = mesh.shape self.add_input(name + "_def_mesh", val=mesh, units="m", tags=["mphys_coupling"]) self.add_input(name + "_sec_forces", val=np.ones((nx - 1, ny - 1, 3)), units="N", tags=["mphys_coupling"]) + # Prevents OpenMDAO from suppressing this component when using group_by_pre_opt_post feature + self.options['always_opt'] = True def compute(self, inputs, outputs): """ diff --git a/openaerostruct/mphys/surface_contours.py b/openaerostruct/mphys/surface_contours.py index cff18ae19..7c3f6d020 100644 --- a/openaerostruct/mphys/surface_contours.py +++ b/openaerostruct/mphys/surface_contours.py @@ -47,6 +47,8 @@ def setup(self): self.add_input(name + "_sec_forces", val=np.ones([nx - 1, ny - 1, 3]), units="N", tags=["mphys_coupling"]) self.add_input("circulations", val=np.zeros([tot_panels]), units="m**2/s", tags=["mphys_coupling"]) self.solution_counter = 0 + # Prevents OpenMDAO from suppressing this component when using group_by_pre_opt_post feature + self.options['always_opt'] = True def compute(self, inputs, outputs): """ From 9c4b5248fb3d8230b8152a5af9008b1807286702 Mon Sep 17 00:00:00 2001 From: Tim Brooks <41971846+timryanb@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:09:00 -0400 Subject: [PATCH 2/4] black reformat --- openaerostruct/mphys/lift_distribution.py | 2 +- openaerostruct/mphys/surface_contours.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openaerostruct/mphys/lift_distribution.py b/openaerostruct/mphys/lift_distribution.py index aded02ccc..bb7bb79b9 100644 --- a/openaerostruct/mphys/lift_distribution.py +++ b/openaerostruct/mphys/lift_distribution.py @@ -43,7 +43,7 @@ def setup(self): self.add_input(name + "_def_mesh", val=mesh, units="m", tags=["mphys_coupling"]) self.add_input(name + "_sec_forces", val=np.ones((nx - 1, ny - 1, 3)), units="N", tags=["mphys_coupling"]) # Prevents OpenMDAO from suppressing this component when using group_by_pre_opt_post feature - self.options['always_opt'] = True + self.options["always_opt"] = True def compute(self, inputs, outputs): """ diff --git a/openaerostruct/mphys/surface_contours.py b/openaerostruct/mphys/surface_contours.py index 7c3f6d020..022b00d26 100644 --- a/openaerostruct/mphys/surface_contours.py +++ b/openaerostruct/mphys/surface_contours.py @@ -48,7 +48,7 @@ def setup(self): self.add_input("circulations", val=np.zeros([tot_panels]), units="m**2/s", tags=["mphys_coupling"]) self.solution_counter = 0 # Prevents OpenMDAO from suppressing this component when using group_by_pre_opt_post feature - self.options['always_opt'] = True + self.options["always_opt"] = True def compute(self, inputs, outputs): """ From ac6e65814ea9a63cf97da77ab08d7f379eb81fc2 Mon Sep 17 00:00:00 2001 From: Tim Brooks <41971846+timryanb@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:09:41 -0400 Subject: [PATCH 3/4] version upperbound for next mphys major release --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1614b911b..ee0d8435b 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ "docs": ["sphinx_mdolab_theme"], "test": ["testflo"], "ffd": ["pygeo>=1.6.0"], - "mphys": ["mphys>=1.0.0"], + "mphys": ["mphys>=1.0.0,<2.0.0"], } # Add an optional dependency that concatenates all others From 5b984f8a976ec6a5a38272b06d756de62333fee2 Mon Sep 17 00:00:00 2001 From: Eytan Adler <63426601+eytanadler@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:02:22 -0400 Subject: [PATCH 4/4] Bump patch version --- openaerostruct/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openaerostruct/__init__.py b/openaerostruct/__init__.py index 2614ce9d9..7a38ae062 100644 --- a/openaerostruct/__init__.py +++ b/openaerostruct/__init__.py @@ -1 +1 @@ -__version__ = "2.7.0" +__version__ = "2.7.1"