FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | report_unit |
subroutine check_antenna(report_unit)
use file_utils, only: run_name
use warning_helpers, only: is_zero
implicit none
integer, intent(in) :: report_unit
integer :: i
if (no_driver) return
if (is_zero(amplitude)) then
write (report_unit, *)
write (report_unit, fmt="('No Langevin antenna included.')")
write (report_unit, *)
else
write (report_unit, *)
write (report_unit, fmt="('A Langevin antenna is included, with characteristics:')")
write (report_unit, *)
write (report_unit, fmt="('Frequency: (',e11.4,', ',e11.4,')')") w_antenna
write (report_unit, fmt="('Number of independent k values: ',i3)") nk_stir
if (write_antenna) then
write (report_unit, *)
write (report_unit, fmt="('Antenna data will be written to ',a)") trim(run_name)//'.antenna'
write (report_unit, *)
end if
write (report_unit, fmt="('k values:')")
do i=1,nk_stir
if (trav(i)) then
write (report_unit, fmt="('Travelling wave:')")
write (report_unit, fmt="(' kx = ',i2,' ky = ',i2,' kz = ',i2)") &
& kx_stir(i), ky_stir(i), kz_stir(i)
else
write (report_unit, fmt="('Standing wave:')")
write (report_unit, fmt="(' kx = ',i2,' ky = ',i2,' kz = ',i2)") &
& kx_stir(i), ky_stir(i), kz_stir(i)
end if
end do
end if
end subroutine check_antenna