Bugs corrected

This commit is contained in:
Alberto Ramos 2021-10-06 18:30:43 +02:00
parent ba65b47787
commit 18bb584fdf
2 changed files with 13 additions and 2 deletions

View file

@ -9,7 +9,17 @@
### created: Wed Oct 6 17:37:03 2021
###
module Fields
using CUDA
using ..Space
vector_field(::Type{T}, lp::SpaceParm) where {T} = CuArray{T, 3}(undef, lp.bsz, lp.ndim, lp.rsz)
scalar_field(::Type{T}, lp::SpaceParm) where {T} = CuArray{T, 3}(undef, lp.bsz, lp.rsz)
scalar_field(::Type{T}, lp::SpaceParm) where {T} = CuArray{T, 2}(undef, lp.bsz, lp.rsz)
nscalar_field(::Type{T}, n, lp::SpaceParm) where {T} = CuArray{T, 3}(undef, lp.bsz, n, lp.rsz)
export vector_field, scalar_field, nscalar_field
end

View file

@ -15,6 +15,7 @@ module YM
using CUDA, Random, StructArrays
using ..Space
using ..Groups
using ..Fields
import Base.show
@ -85,7 +86,7 @@ end
include("YMfields.jl")
export field, field_pln, randomize!, zero!, norm2
export randomize!, zero!, norm2
include("YMact.jl")
export krnl_plaq!, force0_wilson!