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() ) diff --git a/funtofem/interface/caps2fun/aflr_aim.py b/funtofem/interface/caps2fun/aflr_aim.py index 16da159f..8adf2278 100644 --- a/funtofem/interface/caps2fun/aflr_aim.py +++ b/funtofem/interface/caps2fun/aflr_aim.py @@ -58,8 +58,8 @@ def set_boundary_layer( self.aim.input.BL_Initial_Spacing = initial_spacing self.aim.input.BL_Thickness = thickness self.aim.input.BL_Max_Layers = max_layers - if use_quads and (thickness > 0.0): - self.aim.input.Mesh_Gen_Input_String = "-blc3" + if use_quads and (thickness > 0.0): + self.aim.input.Mesh_Gen_Input_String = "-blc3" return self def save_dict_options(self, dictOptions):