Skip to content

Commit

Permalink
Update fun3d_14_interface.py (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
bburke38 authored Oct 24, 2024
1 parent 7c11577 commit 7f64922
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions funtofem/interface/fun3d_14_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def __init__(
coord_test_override=False,
debug=False,
external_mesh_morph=False,
forward_min_tolerance=1e-9,
forward_stop_tolerance=1e-6,
adjoint_min_tolerance=1e-8,
adjoint_stop_tolerance=1e-6,
forward_min_tolerance=1e-6,
forward_stop_tolerance=1e-9,
adjoint_min_tolerance=1e-6,
adjoint_stop_tolerance=1e-8,
):
"""
The instantiation of the FUN3D interface class will populate the model with the aerodynamic surface
Expand Down Expand Up @@ -1182,7 +1182,7 @@ def post_adjoint(self, scenario, bodies):
# throw a runtime error if adjoint didn't converge sufficiently
if abs(np.linalg.norm(resid).real) > self.adjoint_min_tolerance:
raise RuntimeError(
f"Funtofem/Fun3dInterface: fun3d forward adjoint residual = {resid} > {self.adjoint_tolerance:.2e}, is too large..."
f"Funtofem/Fun3dInterface: fun3d forward adjoint residual = {resid} > {self.adjoint_min_tolerance:.2e}, is too large..."
)
return

Expand Down

0 comments on commit 7f64922

Please sign in to comment.