mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 03:33:42 +02:00
Some cleanup
This commit is contained in:
parent
bee24c52a8
commit
e18183d517
5 changed files with 61 additions and 66 deletions
22
src/YM/YM.jl
22
src/YM/YM.jl
|
@ -16,12 +16,21 @@ using CUDA, Random, StructArrays
|
|||
using ..Space
|
||||
using ..Groups
|
||||
|
||||
import Base.show
|
||||
|
||||
struct GaugeParm{T}
|
||||
beta::T
|
||||
cG::NTuple{2,T}
|
||||
ng::Int64
|
||||
end
|
||||
export GaugeParm
|
||||
function Base.show(io::IO, gp::GaugeParm)
|
||||
|
||||
println(io, "beta: ", gp.beta)
|
||||
println(io, "Ngauge: ", gp.beta)
|
||||
|
||||
return nothing
|
||||
end
|
||||
|
||||
struct YMworkspace{T}
|
||||
GRP
|
||||
|
@ -70,6 +79,19 @@ struct YMworkspace{T}
|
|||
end
|
||||
end
|
||||
export YMworkspace
|
||||
function Base.show(io::IO, ymws::YMworkspace)
|
||||
|
||||
println(io, "Workspace for Group: ", ymws.GRP)
|
||||
println(io, " Algebra: ", ymws.ALG)
|
||||
println(io, "Precision: ", ymws.PRC)
|
||||
if ymws.fpln == nothing
|
||||
println(io, " - Running in memory efficient mode")
|
||||
else
|
||||
println(io, " - Running in computing efficient mode")
|
||||
end
|
||||
return nothing
|
||||
end
|
||||
|
||||
|
||||
include("YMfields.jl")
|
||||
export field, field_pln, randomize!, zero!, norm2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue