FIXME : Add documentation
: Provide pass-through of other kt_grid module configs
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kt_grids_config_type), | intent(in), | optional | :: | kt_grids_config_in |
subroutine init_kt_grids(kt_grids_config_in)
use mp, only: proc0, broadcast
implicit none
type(kt_grids_config_type), intent(in), optional :: kt_grids_config_in
if (initialized) return
initialized = .true.
call init_kt_grids_parameters(kt_grids_config_in)
if (proc0) then
call get_sizes
jtwist_out = jtwist
end if
call broadcast (reality)
call broadcast (box)
call broadcast (naky)
call broadcast (ntheta0)
call broadcast (ny)
call broadcast (nx)
call broadcast (gridopt_switch)
call allocate_arrays
if (proc0) call get_grids
call broadcast (ikx) ! MR
call broadcast (aky)
call broadcast (akx)
call broadcast (jtwist_out)
call broadcast (theta0)
allocate(kwork_filter(ntheta0,naky))
kwork_filter=.false.
call init_kperp2
end subroutine init_kt_grids