Print estimated frequencies and growth rates to screen/stdout
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension (:, :) | :: | phitot |
Total magnitude of all the fields |
subroutine do_print_line(phitot)
use mp, only: proc0
use kt_grids, only: naky, ntheta0, aky, akx, theta0
use gs2_time, only: woutunits
implicit none
!> Total magnitude of all the fields
real, dimension (:, :), intent(in) :: phitot
integer :: ik, it
if(.not.proc0) return
do ik = 1, naky
do it = 1, ntheta0
write (unit=*, fmt="('ky=',1pe9.2, ' kx=',1pe9.2, &
& ' om=',e9.2,1x,e9.2,' omav=',e9.2,1x,e9.2, &
& ' phtot=',e9.2,' theta0=',1pe9.2)") &
aky(ik), akx(it), &
real( omega(it,ik)*woutunits(ik)), &
aimag(omega(it,ik)*woutunits(ik)), &
real( omegaavg(it,ik)*woutunits(ik)), &
aimag(omegaavg(it,ik)*woutunits(ik)), &
phitot(it,ik), theta0(it,ik)
end do
end do
write (*,*)
end subroutine do_print_line