Skip to content

Commit

Permalink
Update solver_manager to use FUN3D 14
Browse files Browse the repository at this point in the history
  • Loading branch information
bburke38 committed Sep 16, 2024
1 parent 930ead4 commit 358db9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions funtofem/interface/solver_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

fun3d_loader = importlib.util.find_spec("fun3d")
if fun3d_loader is not None:
from .fun3d_interface import Fun3dInterface
from .fun3d_14_interface import Fun3d14Interface


class CommManager:
Expand Down Expand Up @@ -89,7 +89,7 @@ def uses_fun3d(self) -> bool:
if fun3d_loader is None or self.flow is None:
return False
else:
return isinstance(self.flow, Fun3dInterface)
return isinstance(self.flow, Fun3d14Interface)

@property
def solver_list(self):
Expand Down Expand Up @@ -123,15 +123,15 @@ def make_flow_real(self):
"""
switch fun3d flow to real
"""
self.flow = Fun3dInterface.copy_real_interface(self.flow)
self.flow = Fun3d14Interface.copy_real_interface(self.flow)
return self

def make_flow_complex(self):
"""
switch fun3d flow to complex
"""
print(f"inside make flow complex", flush=True)
self.flow = Fun3dInterface.copy_complex_interface(self.flow)
self.flow = Fun3d14Interface.copy_complex_interface(self.flow)
return self

@property
Expand Down

0 comments on commit 358db9f

Please sign in to comment.