diff --git a/Project.toml b/Project.toml index 225a373f..25aa3fe8 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Chmy" uuid = "33a72cf0-4690-46d7-b987-06506c2248b9" authors = ["Ivan Utkin , Ludovic Raess , and contributors"] -version = "0.1.15" +version = "0.1.16" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" diff --git a/src/Fields/field.jl b/src/Fields/field.jl index f7d1088d..ef72d247 100644 --- a/src/Fields/field.jl +++ b/src/Fields/field.jl @@ -73,12 +73,12 @@ end dst[I...] = src[I...] end -@kernel inbounds = true function _set_continuous!(dst, grid, loc, fun::F, args...) where {F} +@kernel inbounds = true function _set_continuous!(dst, grid, loc, fun::F, args::Vararg{Any, N}) where {F, N} I = @index(Global, NTuple) dst[I...] = fun(coord(grid, loc, I...)..., args...) end -@kernel inbounds = true function _set_discrete!(dst, grid, loc, fun::F, args...) where {F} +@kernel inbounds = true function _set_discrete!(dst, grid, loc, fun::F, args::Vararg{Any, N}) where {F, N} I = @index(Global, NTuple) dst[I...] = fun(grid, loc, I..., args...) end