Skip to content

Commit 7f64922

Browse files
authored
Update fun3d_14_interface.py (#349)
1 parent 7c11577 commit 7f64922

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

funtofem/interface/fun3d_14_interface.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def __init__(
5454
coord_test_override=False,
5555
debug=False,
5656
external_mesh_morph=False,
57-
forward_min_tolerance=1e-9,
58-
forward_stop_tolerance=1e-6,
59-
adjoint_min_tolerance=1e-8,
60-
adjoint_stop_tolerance=1e-6,
57+
forward_min_tolerance=1e-6,
58+
forward_stop_tolerance=1e-9,
59+
adjoint_min_tolerance=1e-6,
60+
adjoint_stop_tolerance=1e-8,
6161
):
6262
"""
6363
The instantiation of the FUN3D interface class will populate the model with the aerodynamic surface
@@ -1182,7 +1182,7 @@ def post_adjoint(self, scenario, bodies):
11821182
# throw a runtime error if adjoint didn't converge sufficiently
11831183
if abs(np.linalg.norm(resid).real) > self.adjoint_min_tolerance:
11841184
raise RuntimeError(
1185-
f"Funtofem/Fun3dInterface: fun3d forward adjoint residual = {resid} > {self.adjoint_tolerance:.2e}, is too large..."
1185+
f"Funtofem/Fun3dInterface: fun3d forward adjoint residual = {resid} > {self.adjoint_min_tolerance:.2e}, is too large..."
11861186
)
11871187
return
11881188

0 commit comments

Comments
 (0)