Complete V4.5 convergence diagnostics
FemLite CI / build-test (push) Has been cancelled

This commit is contained in:
shenw
2026-06-25 09:33:20 +08:00
parent d2dc7ab689
commit 62f1293a9f
18 changed files with 574 additions and 44 deletions
+8
View File
@@ -257,6 +257,7 @@ contains
if (ierr .ne. FEM_SUCCESS) call fail(92)
if (iter .le. 0 .or. iter .gt. 5) call fail(93)
if (res_norm .gt. TOL) call fail(94)
if (convergence_correction_norm .le. ZERO) call fail(101)
dof = dof_id(1,2)
call check_close(u(dof), 15.0_rk / 68.0_rk, 95)
@@ -434,6 +435,13 @@ contains
if (allocated(statev)) then
if (maxval(abs(statev)) .gt. TOL) call fail(156)
end if
if (convergence_cutback_count .ne. 2) call fail(158)
if (convergence_status_code .ne. CONVERGENCE_STATUS_FAILED) call fail(159)
if (convergence_converged) call fail(160)
call check_close(convergence_last_dt, 0.25_rk, 161)
if (convergence_failure_code .ne. CONV_FAIL_CUTBACK_LIMIT) &
call fail(162)
call check_close(convergence_last_accepted_time, ZERO, 163)
allow_step_cutback = old_cutback
max_cutback = old_max_cutback