Some cleanup

This commit is contained in:
Alberto Ramos 2021-09-25 09:35:56 +02:00
parent bee24c52a8
commit e18183d517
5 changed files with 61 additions and 66 deletions

View file

@ -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