Release FemLite 0.5.3
FemLite CI / build-test (push) Has been cancelled

This commit is contained in:
shenw
2026-07-01 18:39:18 +08:00
parent 75d4e735b1
commit 2b7962eb96
51 changed files with 3084 additions and 2175 deletions
+35
View File
@@ -43,6 +43,7 @@ program test_implicit_inp
call check_shell_static_patch('tests/data/s8_static_patch.inp', 2, 220)
call check_s4_comp_section_inp()
call check_static_nonlinear_elastic()
call check_static_nl_fail_reason()
call check_static_nonlinear_j2_disp()
call check_buckling_step_inp()
call check_buckling_preload_inp()
@@ -386,6 +387,7 @@ contains
integer :: conv_cutback_count
integer :: conv_status_code
integer :: conv_failure_code
integer :: conv_reason_id
integer :: query_nodes(4)
integer :: query_elems(1)
real(rk) :: res_norm
@@ -407,6 +409,7 @@ contains
real(rk) :: eqps(1)
real(rk) :: damage(1)
logical :: conv_converged
character(len=64) :: conv_reason_name
call fem_initialize(ierr)
if (ierr .ne. 0) call fail(250)
@@ -440,6 +443,10 @@ contains
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_reason(conv_reason_id, conv_reason_name, ierr)
if (ierr .ne. 0) call fail(2288)
if (conv_reason_id .ne. NFAIL_NONE) call fail(2289)
if (trim(conv_reason_name) .ne. 'none') call fail(2290)
call fem_get_convergence_metrics(conv_relative_residual, &
conv_contact_gap, conv_combined_norm, ierr)
@@ -486,6 +493,34 @@ contains
if (ierr .ne. 0) call fail(276)
end subroutine check_static_nonlinear_elastic
subroutine check_static_nl_fail_reason()
integer :: ierr
integer :: iter
integer :: conv_reason_id
real(rk) :: res_norm
character(len=64) :: conv_reason_name
call fem_initialize(ierr)
if (ierr .ne. 0) call fail(2291)
call fem_read_inp('tests/data/c3d4_static_nonlinear_elastic.inp', ierr)
if (ierr .ne. 0) call fail(2292)
call fem_build_model(ierr)
if (ierr .ne. 0) call fail(2293)
call fem_solve_static_nonlinear(4, 1, 1.0e-30_rk, iter, res_norm, ierr)
if (ierr .eq. 0) call fail(2294)
call fem_get_convergence_reason(conv_reason_id, conv_reason_name, ierr)
if (ierr .ne. 0) call fail(2295)
if (conv_reason_id .ne. NFAIL_MIN_STEP) call fail(2296)
if (trim(conv_reason_name) .ne. 'minimum-step-exhausted') call fail(2297)
call fem_finalize(ierr)
if (ierr .ne. 0) call fail(2298)
end subroutine check_static_nl_fail_reason
subroutine check_static_nonlinear_j2_disp()
integer :: ierr
integer :: iter