FIXME : Add documentation
subroutine init_wstar
use species, only: nspec, dlnf0drho
use kt_grids, only: naky
use le_grids, only: negrid
use gs2_time, only: code_dt, wunits
implicit none
integer :: ik, ie, is
if(.not.allocated(wstar)) allocate (wstar(naky,negrid,nspec))
do is = 1, nspec
do ie = 1, negrid
do ik = 1, naky
wstar(ik,ie,is) = - code_dt*wunits(ik) * dlnf0drho(ie,is)
end do
end do
end do
end subroutine init_wstar