Corrected some bugs in new Fields module

This commit is contained in:
Alberto Ramos 2021-10-06 18:24:33 +02:00
parent de419aca1d
commit ae95a278cb
2 changed files with 13 additions and 2 deletions

View file

@ -9,7 +9,17 @@
### created: Wed Oct 6 17:37:03 2021 ### 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) 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) 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 CUDA, Random, StructArrays
using ..Space using ..Space
using ..Groups using ..Groups
using ..Fields
import Base.show import Base.show
@ -85,7 +86,7 @@ end
include("YMfields.jl") include("YMfields.jl")
export field, field_pln, randomize!, zero!, norm2 export randomize!, zero!, norm2
include("YMact.jl") include("YMact.jl")
export krnl_plaq!, force0_wilson! export krnl_plaq!, force0_wilson!