Skip to content

Commit 75ea914

Browse files
authored
Fix bugs in aflr_aim and oneway_aero_driver (#353)
* Update aflr_aim.py * Update oneway_aero_driver.py
1 parent f8bab62 commit 75ea914

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

funtofem/driver/oneway_aero_driver.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,6 @@ def __init__(
180180
"The mesh morphing does not require a remote driver! Make this driver regularly!"
181181
)
182182

183-
if not self.is_remote:
184-
if self.model.flow is not None:
185-
if not self.is_paired and not self.model.flow.mesh_morph:
186-
raise AssertionError(
187-
"The nominal version of the driver only works for Fun3d mesh morphing not remeshing."
188-
)
189-
190-
if self.change_shape and self.root_proc:
191-
print(
192-
f"Warning!! You are trying to remesh without using remote system calls of FUN3D, this will likely cause a FUN3D bug."
193-
)
194-
195183
# check for unsteady problems
196184
self._unsteady = any([not scenario.steady for scenario in model.scenarios])
197185

@@ -210,6 +198,18 @@ def __init__(
210198
self.flow_aim = model.flow.fun3d_aim
211199
# TBD on new types
212200

201+
if not self.is_remote:
202+
if self.model.flow is not None:
203+
if not self.is_paired and not self.model.flow.mesh_morph:
204+
raise AssertionError(
205+
"The nominal version of the driver only works for Fun3d mesh morphing not remeshing."
206+
)
207+
208+
if self.change_shape and self.root_proc:
209+
print(
210+
f"Warning!! You are trying to remesh without using remote system calls of FUN3D, this will likely cause a FUN3D bug."
211+
)
212+
213213
self.transfer_settings = (
214214
transfer_settings if transfer_settings is not None else TransferSettings()
215215
)

funtofem/interface/caps2fun/aflr_aim.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def set_boundary_layer(
5858
self.aim.input.BL_Initial_Spacing = initial_spacing
5959
self.aim.input.BL_Thickness = thickness
6060
self.aim.input.BL_Max_Layers = max_layers
61-
if use_quads and (thickness > 0.0):
62-
self.aim.input.Mesh_Gen_Input_String = "-blc3"
61+
if use_quads and (thickness > 0.0):
62+
self.aim.input.Mesh_Gen_Input_String = "-blc3"
6363
return self
6464

6565
def save_dict_options(self, dictOptions):

0 commit comments

Comments
 (0)