This commit is contained in:
@@ -152,6 +152,9 @@ contains
|
||||
integer :: released_pair_count
|
||||
real(rk) :: max_gap_residual
|
||||
real(rk) :: max_aug_lambda
|
||||
real(rk) :: conv_relative_residual
|
||||
real(rk) :: conv_contact_gap
|
||||
real(rk) :: conv_combined_norm
|
||||
|
||||
call fem_initialize(ierr)
|
||||
if (ierr .ne. FEM_SUCCESS) call fail(145)
|
||||
@@ -208,6 +211,12 @@ contains
|
||||
if (released_pair_count .ne. 0) call fail(150)
|
||||
call check_close(max_gap_residual, 0.01_rk, 151)
|
||||
call check_close(max_aug_lambda, ONE, 152)
|
||||
call fem_get_convergence_metrics(conv_relative_residual, &
|
||||
conv_contact_gap, conv_combined_norm, ierr)
|
||||
if (ierr .ne. FEM_SUCCESS) call fail(153)
|
||||
call check_close(conv_relative_residual, ZERO, 154)
|
||||
call check_close(conv_contact_gap, 0.01_rk, 155)
|
||||
call check_close(conv_combined_norm, 0.01_rk, 156)
|
||||
|
||||
u(dof) = 0.01_rk
|
||||
call contact_apply_plane_forces(ierr)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user