Call to write log file in the subdirectory "restart". It is useful information while restarting the solver
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(filetype), | intent(in) | :: | files | |||
type(schemetype), | intent(in) | :: | scheme | |||
type(controltype), | intent(in) | :: | control |
subroutine write_restart_log(files, scheme, control)
!< Call to write log file in the subdirectory "restart".
!< It is useful information while restarting the solver
implicit none
type(filetype), intent(in) :: files
type(controltype), intent(in) :: control
type(schemetype), intent(in) :: scheme
open(files%RESTART_FILE_UNIT, file=files%restartfile)
select case (scheme%turbulence)
case ('none')
write(files%RESTART_FILE_UNIT, '(A)') 'viscous'
case('sst','sst2003', 'kkl', 'ke', 'kw', 'sa', 'saBC', 'des-sst')
write(files%RESTART_FILE_UNIT, '(A)') trim(scheme%turbulence)
case DEFAULT
Fatal_error
end select
call write_initial_resnorm(files, control)
close(files%RESTART_FILE_UNIT)
end subroutine write_restart_log