stella_layouts Module



Variables

Type Visibility Attributes Name Initial
character(len=4), public :: xyzs_layout
character(len=3), public :: vms_layout
logical, private :: exist
type(kxkyz_layout_type), public :: kxkyz_lo
type(kxyz_layout_type), public :: kxyz_lo
type(xyz_layout_type), public :: xyz_lo
type(vmu_layout_type), public :: vmu_lo

Interfaces

public interface it_idx

  • private elemental function it_idx_kxkyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function it_idx_kxyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function it_idx_xyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface iz_idx

  • private elemental function iz_idx_kxkyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function iz_idx_kxyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function iz_idx_xyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface iv_idx

  • private elemental function iv_idx_vmu(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(vmu_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface iky_idx

  • private elemental function iky_idx_kxkyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface iy_idx

  • private elemental function iy_idx_kxyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function iy_idx_xyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface ikx_idx

  • private elemental function ikx_idx_kxkyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function ikx_idx_kxyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

private interface ix_idx

  • private elemental function ix_idx_xyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface imu_idx

  • private elemental function imu_idx_vmu(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(vmu_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface is_idx

  • private elemental function is_idx_kxkyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function is_idx_kxyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function is_idx_xyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function is_idx_vmu(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(vmu_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface proc_id

  • private elemental function proc_id_kxkyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function proc_id_kxyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function proc_id_xyz(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

  • private elemental function proc_id_vmu(lo, i)

    Arguments

    Type IntentOptional Attributes Name
    type(vmu_layout_type), intent(in) :: lo
    integer, intent(in) :: i

    Return Value integer

public interface idx

  • private elemental function idx_kxkyz(lo, iky, ikx, iz, it, is)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iky
    integer, intent(in) :: ikx
    integer, intent(in) :: iz
    integer, intent(in) :: it
    integer, intent(in) :: is

    Return Value integer

  • private elemental function idx_kxyz(lo, iy, ikx, iz, it, is)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iy
    integer, intent(in) :: ikx
    integer, intent(in) :: iz
    integer, intent(in) :: it
    integer, intent(in) :: is

    Return Value integer

  • private elemental function idx_xyz(lo, iy, ix, iz, it, is)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iy
    integer, intent(in) :: ix
    integer, intent(in) :: iz
    integer, intent(in) :: it
    integer, intent(in) :: is

    Return Value integer

  • private elemental function idx_vmu(lo, iv, imu, is)

    Arguments

    Type IntentOptional Attributes Name
    type(vmu_layout_type), intent(in) :: lo
    integer, intent(in) :: iv
    integer, intent(in) :: imu
    integer, intent(in) :: is

    Return Value integer

public interface idx_local

  • private elemental function idx_local_kxkyz(lo, iky, ikx, iz, it, is)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iky
    integer, intent(in) :: ikx
    integer, intent(in) :: iz
    integer, intent(in) :: it
    integer, intent(in) :: is

    Return Value logical

  • private elemental function iz_local_kxkyz(lo, iz)

    Arguments

    Type IntentOptional Attributes Name
    type(kxkyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iz

    Return Value logical

  • private elemental function idx_local_kxyz(lo, iy, ikx, iz, it, is)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iy
    integer, intent(in) :: ikx
    integer, intent(in) :: iz
    integer, intent(in) :: it
    integer, intent(in) :: is

    Return Value logical

  • private elemental function iz_local_kxyz(lo, iz)

    Arguments

    Type IntentOptional Attributes Name
    type(kxyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iz

    Return Value logical

  • private elemental function idx_local_xyz(lo, iy, ix, iz, it, is)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iy
    integer, intent(in) :: ix
    integer, intent(in) :: iz
    integer, intent(in) :: it
    integer, intent(in) :: is

    Return Value logical

  • private elemental function iz_local_xyz(lo, iz)

    Arguments

    Type IntentOptional Attributes Name
    type(xyz_layout_type), intent(in) :: lo
    integer, intent(in) :: iz

    Return Value logical

  • private elemental function idx_local_vmu(lo, iv, imu, is)

    Arguments

    Type IntentOptional Attributes Name
    type(vmu_layout_type), intent(in) :: lo
    integer, intent(in) :: iv
    integer, intent(in) :: imu
    integer, intent(in) :: is

    Return Value logical

  • private elemental function iz_local_vmu(lo, iz)

    Arguments

    Type IntentOptional Attributes Name
    type(vmu_layout_type), intent(in) :: lo
    integer, intent(in) :: iz

    Return Value logical


Functions

private elemental function is_idx_kxkyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function ikx_idx_kxkyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function iky_idx_kxkyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function iz_idx_kxkyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function it_idx_kxkyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function proc_id_kxkyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function idx_kxkyz(lo, iky, ikx, iz, it, is)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: iky
integer, intent(in) :: ikx
integer, intent(in) :: iz
integer, intent(in) :: it
integer, intent(in) :: is

Return Value integer

private elemental function idx_local_kxkyz(lo, iky, ikx, iz, it, is)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: iky
integer, intent(in) :: ikx
integer, intent(in) :: iz
integer, intent(in) :: it
integer, intent(in) :: is

Return Value logical

private elemental function iz_local_kxkyz(lo, iz)

Arguments

Type IntentOptional Attributes Name
type(kxkyz_layout_type), intent(in) :: lo
integer, intent(in) :: iz

Return Value logical

private elemental function is_idx_kxyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function ikx_idx_kxyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function iy_idx_kxyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function iz_idx_kxyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function it_idx_kxyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function proc_id_kxyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function idx_kxyz(lo, iy, ikx, iz, it, is)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: iy
integer, intent(in) :: ikx
integer, intent(in) :: iz
integer, intent(in) :: it
integer, intent(in) :: is

Return Value integer

private elemental function idx_local_kxyz(lo, iy, ikx, iz, it, is)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: iy
integer, intent(in) :: ikx
integer, intent(in) :: iz
integer, intent(in) :: it
integer, intent(in) :: is

Return Value logical

private elemental function iz_local_kxyz(lo, iz)

Arguments

Type IntentOptional Attributes Name
type(kxyz_layout_type), intent(in) :: lo
integer, intent(in) :: iz

Return Value logical

private elemental function is_idx_xyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function ix_idx_xyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function iy_idx_xyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function iz_idx_xyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function it_idx_xyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function proc_id_xyz(lo, i)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function idx_xyz(lo, iy, ix, iz, it, is)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: iy
integer, intent(in) :: ix
integer, intent(in) :: iz
integer, intent(in) :: it
integer, intent(in) :: is

Return Value integer

private elemental function idx_local_xyz(lo, iy, ix, iz, it, is)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: iy
integer, intent(in) :: ix
integer, intent(in) :: iz
integer, intent(in) :: it
integer, intent(in) :: is

Return Value logical

private elemental function iz_local_xyz(lo, iz)

Arguments

Type IntentOptional Attributes Name
type(xyz_layout_type), intent(in) :: lo
integer, intent(in) :: iz

Return Value logical

private elemental function is_idx_vmu(lo, i)

Arguments

Type IntentOptional Attributes Name
type(vmu_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function imu_idx_vmu(lo, i)

Arguments

Type IntentOptional Attributes Name
type(vmu_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function iv_idx_vmu(lo, i)

Arguments

Type IntentOptional Attributes Name
type(vmu_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function proc_id_vmu(lo, i)

Arguments

Type IntentOptional Attributes Name
type(vmu_layout_type), intent(in) :: lo
integer, intent(in) :: i

Return Value integer

private elemental function idx_vmu(lo, iv, imu, is)

Arguments

Type IntentOptional Attributes Name
type(vmu_layout_type), intent(in) :: lo
integer, intent(in) :: iv
integer, intent(in) :: imu
integer, intent(in) :: is

Return Value integer

private elemental function idx_local_vmu(lo, iv, imu, is)

Arguments

Type IntentOptional Attributes Name
type(vmu_layout_type), intent(in) :: lo
integer, intent(in) :: iv
integer, intent(in) :: imu
integer, intent(in) :: is

Return Value logical

private elemental function iz_local_vmu(lo, iz)

Arguments

Type IntentOptional Attributes Name
type(vmu_layout_type), intent(in) :: lo
integer, intent(in) :: iz

Return Value logical


Subroutines

public subroutine init_stella_layouts()

Arguments

None

private subroutine read_parameters()

Arguments

None

private subroutine broadcast_results()

Arguments

None

public subroutine init_dist_fn_layouts(nzgrid, ntubes, naky, nakx, nvgrid, nmu, nspec, ny, nx, nalpha)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nzgrid
integer, intent(in) :: ntubes
integer, intent(in) :: naky
integer, intent(in) :: nakx
integer, intent(in) :: nvgrid
integer, intent(in) :: nmu
integer, intent(in) :: nspec
integer, intent(in) :: ny
integer, intent(in) :: nx
integer, intent(in) :: nalpha

private subroutine init_kxkyz_layout(nzgrid, ntubes, naky, nakx, nvgrid, nmu, nspec)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nzgrid
integer, intent(in) :: ntubes
integer, intent(in) :: naky
integer, intent(in) :: nakx
integer, intent(in) :: nvgrid
integer, intent(in) :: nmu
integer, intent(in) :: nspec

private subroutine init_kxyz_layout(nzgrid, ntubes, naky, nakx, nvgrid, nmu, nspec, ny)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nzgrid
integer, intent(in) :: ntubes
integer, intent(in) :: naky
integer, intent(in) :: nakx
integer, intent(in) :: nvgrid
integer, intent(in) :: nmu
integer, intent(in) :: nspec
integer, intent(in) :: ny

private subroutine init_xyz_layout(nzgrid, ntubes, naky, nakx, nvgrid, nmu, nspec, ny, nx)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nzgrid
integer, intent(in) :: ntubes
integer, intent(in) :: naky
integer, intent(in) :: nakx
integer, intent(in) :: nvgrid
integer, intent(in) :: nmu
integer, intent(in) :: nspec
integer, intent(in) :: ny
integer, intent(in) :: nx

private subroutine init_vmu_layout(nzgrid, ntubes, naky, nakx, nvgrid, nmu, nspec, ny, nx, nalpha)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nzgrid
integer, intent(in) :: ntubes
integer, intent(in) :: naky
integer, intent(in) :: nakx
integer, intent(in) :: nvgrid
integer, intent(in) :: nmu
integer, intent(in) :: nspec
integer, intent(in) :: ny
integer, intent(in) :: nx
integer, intent(in) :: nalpha

public elemental subroutine kxkyzidx2vmuidx(iv, imu, ikxkyz, kxkyz_lo, vmu_lo, iky, ikx, iz, it, ivmu)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: iv
integer, intent(in) :: imu
integer, intent(in) :: ikxkyz
type(kxkyz_layout_type), intent(in) :: kxkyz_lo
type(vmu_layout_type), intent(in) :: vmu_lo
integer, intent(out) :: iky
integer, intent(out) :: ikx
integer, intent(out) :: iz
integer, intent(out) :: it
integer, intent(out) :: ivmu

public elemental subroutine kxyzidx2vmuidx(iv, imu, ikxyz, kxyz_lo, vmu_lo, iy, ikx, iz, it, ivmu)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: iv
integer, intent(in) :: imu
integer, intent(in) :: ikxyz
type(kxyz_layout_type), intent(in) :: kxyz_lo
type(vmu_layout_type), intent(in) :: vmu_lo
integer, intent(out) :: iy
integer, intent(out) :: ikx
integer, intent(out) :: iz
integer, intent(out) :: it
integer, intent(out) :: ivmu

public elemental subroutine xyzidx2vmuidx(iv, imu, ixyz, xyz_lo, vmu_lo, iy, ix, iz, it, ivmu)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: iv
integer, intent(in) :: imu
integer, intent(in) :: ixyz
type(xyz_layout_type), intent(in) :: xyz_lo
type(vmu_layout_type), intent(in) :: vmu_lo
integer, intent(out) :: iy
integer, intent(out) :: ix
integer, intent(out) :: iz
integer, intent(out) :: it
integer, intent(out) :: ivmu

public subroutine finish_layouts()

Arguments

None