diff --git a/moment_kinetics/src/coordinates.jl b/moment_kinetics/src/coordinates.jl index 1fa5c6ef4..057fec44f 100644 --- a/moment_kinetics/src/coordinates.jl +++ b/moment_kinetics/src/coordinates.jl @@ -6,7 +6,7 @@ export define_coordinate, write_coordinate export equally_spaced_grid export set_element_boundaries -using InboundsArrays: get_noninbounds +using InboundsArrays: get_noninbounds, AbstractInboundsArray using LinearAlgebra using ..type_definitions using ..array_allocation: allocate_float, allocate_shared_float, allocate_int, allocate_shared_int @@ -26,12 +26,14 @@ using OrderedCollections: OrderedDict """ structure containing basic information related to coordinates """ -struct coordinate{Tshared <: AbstractVector{mk_float}, Tsharedi <: AbstractVector{mk_int}, - Tunshared <: AbstractVector{mk_float}, - Tunsharedi <: AbstractVector{mk_int}, - Tunsharedmat <: AbstractMatrix{mk_float}, - Tunsharedmati <: AbstractMatrix{mk_int}, - Tunshared3 <: AbstractArray{mk_float,3}, Tbparams} +struct coordinate{Tshared <: Union{AbstractVector{mk_float}, AbstractInboundsArray{mk_float, 1}}, + Tsharedi <: Union{AbstractVector{mk_int}, AbstractInboundsArray{mk_int, 1}}, + Tunshared <: Union{AbstractVector{mk_float}, AbstractInboundsArray{mk_float, 1}}, + Tunsharedi <: Union{AbstractVector{mk_int}, AbstractInboundsArray{mk_int, 1}}, + Tunsharedmat <: Union{AbstractMatrix{mk_float}, AbstractInboundsArray{mk_float, 2}}, + Tunsharedmati <: Union{AbstractMatrix{mk_int}, AbstractInboundsArray{mk_int, 2}}, + Tunshared3 <: Union{AbstractArray{mk_float,3}, AbstractInboundsArray{mk_float, 3}}, + Tbparams} # name is the name of the variable associated with this coordiante name::String # n_global is the total number of grid points associated with this coordinate