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
+25
View File
@@ -185,11 +185,19 @@ contains
integer :: step
integer :: conv_increment
integer :: conv_iteration
integer :: conv_cutback_count
integer :: conv_status_code
integer :: conv_failure_code
integer :: query_nodes(4)
integer :: query_elems(1)
real(rk) :: res_norm
real(rk) :: conv_residual_norm
real(rk) :: conv_correction_norm
real(rk) :: conv_last_dt
real(rk) :: conv_last_accepted_time
real(rk) :: conv_relative_residual
real(rk) :: conv_contact_gap
real(rk) :: conv_combined_norm
real(rk) :: time
real(rk) :: displacement(NDIM)
real(rk) :: velocity(NDIM)
@@ -226,6 +234,23 @@ contains
if (conv_residual_norm .gt. TOL) call fail(281)
if (conv_correction_norm .lt. ZERO) call fail(282)
call fem_get_convergence_diagnostics(conv_cutback_count, conv_last_dt, &
conv_last_accepted_time, conv_status_code, conv_failure_code, ierr)
if (ierr .ne. 0) call fail(283)
if (conv_cutback_count .ne. 0) call fail(284)
call check_close(conv_last_dt, 0.25_rk, 285)
if (conv_status_code .ne. CONVERGENCE_STATUS_CONVERGED) call fail(286)
call check_close(conv_last_accepted_time, ONE, 287)
if (conv_failure_code .ne. CONV_FAIL_NONE) call fail(288)
call fem_get_convergence_metrics(conv_relative_residual, &
conv_contact_gap, conv_combined_norm, ierr)
if (ierr .ne. 0) call fail(289)
if (conv_relative_residual .gt. TOL) call fail(290)
call check_close(conv_contact_gap, ZERO, 291)
if (conv_combined_norm .lt. conv_relative_residual .or. &
conv_combined_norm .lt. conv_contact_gap) call fail(292)
call fem_get_node_kinematics(2, displacement, velocity, acceleration, ierr)
if (ierr .ne. 0) call fail(257)
call check_close(displacement(1), 5.0_rk / 6.0_rk, 258)