Complete V5 acceptance milestone
This commit is contained in:
@@ -19,6 +19,8 @@ program test_implicit_inp
|
||||
use fem_database_surface, only: db_contact_facet_match, &
|
||||
db_contact_facet_normal_sign, &
|
||||
db_contact_facet_has_side
|
||||
use fem_sparse_csr_diagnostics, only: CSR_CLASS_GENERAL, &
|
||||
CSR_CLASS_SPD_CAND
|
||||
implicit none
|
||||
|
||||
real(rk), parameter :: TOL = 1.0e-10_rk
|
||||
@@ -49,10 +51,13 @@ contains
|
||||
integer :: linsol_preconditioner
|
||||
integer :: linsol_iteration
|
||||
integer :: linsol_status
|
||||
integer :: linsol_matrix_class
|
||||
real(rk) :: res_norm
|
||||
real(rk) :: conv_residual_norm
|
||||
real(rk) :: conv_correction_norm
|
||||
real(rk) :: linsol_initial_residual
|
||||
real(rk) :: linsol_residual
|
||||
real(rk) :: linsol_relative_residual
|
||||
real(rk) :: time
|
||||
real(rk) :: displacement(NDIM)
|
||||
real(rk) :: velocity(NDIM)
|
||||
@@ -92,6 +97,16 @@ contains
|
||||
if (linsol_status .ne. LS_STATUS_CONVERGED) call fail(1008)
|
||||
if (linsol_iteration .le. 0) call fail(1009)
|
||||
if (linsol_residual .gt. 1.0e-10_rk) call fail(1010)
|
||||
call fem_get_linsol_diagnostics(linsol_matrix_class, &
|
||||
linsol_initial_residual, linsol_residual, linsol_relative_residual, &
|
||||
linsol_status, ierr)
|
||||
if (ierr .ne. 0) call fail(1012)
|
||||
if (linsol_matrix_class .lt. CSR_CLASS_GENERAL .or. &
|
||||
linsol_matrix_class .gt. CSR_CLASS_SPD_CAND) call fail(1013)
|
||||
if (linsol_initial_residual .le. linsol_residual) call fail(1014)
|
||||
if (linsol_residual .gt. 1.0e-10_rk) call fail(1015)
|
||||
if (linsol_relative_residual .gt. 1.0e-10_rk) call fail(1016)
|
||||
if (linsol_status .ne. LS_STATUS_CONVERGED) call fail(1017)
|
||||
call fem_set_linear_solver(LSOLVER_CG, LPRECOND_JACOBI, ierr)
|
||||
if (ierr .ne. 0) call fail(1011)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user