mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 11:43:42 +02:00
Generic interface to create fields
This commit is contained in:
parent
3f71a5222f
commit
0fe33c5b38
6 changed files with 30 additions and 24 deletions
|
@ -9,18 +9,6 @@
|
|||
### created: Thu Jul 15 15:16:47 2021
|
||||
###
|
||||
|
||||
function field(::Type{T}, lp::SpaceParm) where {T}
|
||||
|
||||
sz = lp.bsz, lp.ndim, lp.rsz
|
||||
return CuArray{T, 3}(undef, sz)
|
||||
end
|
||||
|
||||
function field_pln(::Type{T}, lp::SpaceParm) where {T}
|
||||
|
||||
sz = lp.bsz, lp.npls, lp.rsz, 3
|
||||
return CuArray{T, 4}(undef, sz)
|
||||
end
|
||||
|
||||
function randomize!(f, lp::SpaceParm, ymws::YMworkspace)
|
||||
|
||||
if ymws.ALG == SU2alg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue