mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-14 19:23:42 +02:00
Corrected some bugs in new Fields module
This commit is contained in:
parent
de419aca1d
commit
ae95a278cb
2 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue