Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding option to prevent OpenMDAO from suppressing tecplot file writing #427

Merged
merged 4 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openaerostruct/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.7.0"
__version__ = "2.7.1"
2 changes: 2 additions & 0 deletions openaerostruct/mphys/lift_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
2 changes: 2 additions & 0 deletions openaerostruct/mphys/surface_contours.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading