Skip to content

Commit 1ca347b

Browse files
committed
Remove test on relative residual for computing Jacobian
1 parent 8a992ba commit 1ca347b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

turtleFSI/modules/newtonsolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def newtonsolver(F, J_nonlinear, A_pre, A, b, bcs, lmbda, recompute, recompute_t
5656
recompute_frequency = iter > 0 and iter % recompute == 0
5757

5858
# Recompute Jacobian due to increased residual
59-
recompute_residual = iter > 0 and (last_rel_res < rel_res or last_residual < residual)
59+
recompute_residual = iter > 0 and last_residual < residual
6060

6161
# Recompute Jacobian on first step of simulation (important if restart is used)
6262
recompute_initialize = iter == 0 and counter == first_step_num

0 commit comments

Comments
 (0)