Skip to content

Commit d788e11

Browse files
timryanbeytanadler
andauthored
Adding option to prevent OpenMDAO from suppressing tecplot file writing (#427)
* Adding option to prevent OpenMDAO from suppressing tecplot file writing when using `group_by_pre_opt_post` feature * black reformat * version upperbound for next mphys major release * Bump patch version --------- Co-authored-by: Eytan Adler <63426601+eytanadler@users.noreply.github.com>
1 parent 5c28f3e commit d788e11

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

openaerostruct/mphys/lift_distribution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def setup(self):
4242
nx, ny, _ = mesh.shape
4343
self.add_input(name + "_def_mesh", val=mesh, units="m", tags=["mphys_coupling"])
4444
self.add_input(name + "_sec_forces", val=np.ones((nx - 1, ny - 1, 3)), units="N", tags=["mphys_coupling"])
45+
# Prevents OpenMDAO from suppressing this component when using group_by_pre_opt_post feature
46+
self.options["always_opt"] = True
4547

4648
def compute(self, inputs, outputs):
4749
"""

openaerostruct/mphys/surface_contours.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def setup(self):
4747
self.add_input(name + "_sec_forces", val=np.ones([nx - 1, ny - 1, 3]), units="N", tags=["mphys_coupling"])
4848
self.add_input("circulations", val=np.zeros([tot_panels]), units="m**2/s", tags=["mphys_coupling"])
4949
self.solution_counter = 0
50+
# Prevents OpenMDAO from suppressing this component when using group_by_pre_opt_post feature
51+
self.options["always_opt"] = True
5052

5153
def compute(self, inputs, outputs):
5254
"""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"docs": ["sphinx_mdolab_theme"],
1313
"test": ["testflo"],
1414
"ffd": ["pygeo>=1.6.0"],
15-
"mphys": ["mphys>=1.0.0"],
15+
"mphys": ["mphys>=1.0.0,<2.0.0"],
1616
}
1717

1818
# Add an optional dependency that concatenates all others

0 commit comments

Comments
 (0)