From 7e364b17fba5d210c10210fb28c9c6fb0886dceb Mon Sep 17 00:00:00 2001 From: "Burke, Brian" Date: Fri, 1 Nov 2024 12:23:44 -0400 Subject: [PATCH] Update oneway_aero_driver.py --- funtofem/driver/oneway_aero_driver.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/funtofem/driver/oneway_aero_driver.py b/funtofem/driver/oneway_aero_driver.py index 102f6738..a528edc0 100644 --- a/funtofem/driver/oneway_aero_driver.py +++ b/funtofem/driver/oneway_aero_driver.py @@ -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]) @@ -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() )