Writing Initial resnorom in the log file to maintian continuity of resnorm while restrarting
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(filetype), | intent(in) | :: | files | |||
type(controltype), | intent(in) | :: | control |
subroutine write_initial_resnorm(files, control)
!< Writing Initial resnorom in the log file to
!< maintian continuity of resnorm while restrarting
implicit none
type(filetype), intent(in) :: files
type(controltype), intent(in) :: control
integer :: i
write(files%RESTART_FILE_UNIT, '(I0)') control%current_iter+control%last_iter
do i = 1,control%n_var+1
write(files%RESTART_FILE_UNIT, '(f0.16)') control%previous_res(i)
end do
end subroutine write_initial_resnorm