Skip to content

Commit

Permalink
Update oneway_aero_driver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bburke38 committed Nov 1, 2024
1 parent 1a4d70f commit 7e364b1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions funtofem/driver/oneway_aero_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,18 +180,6 @@ def __init__(
"The mesh morphing does not require a remote driver! Make this driver regularly!"
)

if not self.is_remote:
if self.model.flow is not None:
if not self.is_paired and not self.model.flow.mesh_morph:
raise AssertionError(
"The nominal version of the driver only works for Fun3d mesh morphing not remeshing."
)

if self.change_shape and self.root_proc:
print(
f"Warning!! You are trying to remesh without using remote system calls of FUN3D, this will likely cause a FUN3D bug."
)

# check for unsteady problems
self._unsteady = any([not scenario.steady for scenario in model.scenarios])

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

if not self.is_remote:
if self.model.flow is not None:
if not self.is_paired and not self.model.flow.mesh_morph:
raise AssertionError(
"The nominal version of the driver only works for Fun3d mesh morphing not remeshing."
)

if self.change_shape and self.root_proc:
print(
f"Warning!! You are trying to remesh without using remote system calls of FUN3D, this will likely cause a FUN3D bug."
)

self.transfer_settings = (
transfer_settings if transfer_settings is not None else TransferSettings()
)
Expand Down

0 comments on commit 7e364b1

Please sign in to comment.