Skip to content

Commit ceb1911

Browse files
authored
Merge pull request #30 from KVSlab/johannr/no-rel-test
Remove test on relative residual for computing Jacobian
2 parents 8a992ba + 1ca347b commit ceb1911

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)