Add implicit linear CLI workflow

This commit is contained in:
shenw
2026-06-22 22:06:11 +08:00
parent f852a93b91
commit fbbb9c344f
4 changed files with 120 additions and 0 deletions
+12
View File
@@ -21,7 +21,9 @@ program femlite
integer :: num_cload
integer :: num_dload
integer :: step
integer :: iter
real(rk) :: time
real(rk) :: res_norm
character(len=256) :: filename
character(len=256) :: arg
@@ -75,6 +77,16 @@ program femlite
write(*,'(A)') 'Run completed'
write(*,'(A,I8)') ' steps: ', step
write(*,'(A,ES12.5)') ' time: ', time
else if (trim(arg) .eq. '--implicit-linear') then
call fem_solve_implicit_linear(500, 1.0e-10_rk, iter, res_norm, ierr)
call exit_if_error(ierr)
call fem_get_current_time(time, step, ierr)
call exit_if_error(ierr)
write(*,'(A)') 'Implicit linear solve completed'
write(*,'(A,I8)') ' steps: ', step
write(*,'(A,ES12.5)') ' time: ', time
write(*,'(A,I8)') ' cg iter: ', iter
write(*,'(A,ES12.5)') ' residual: ', res_norm
end if
end if
end if