mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-14 19:23:42 +02:00
Compilation Fix
This commit is contained in:
parent
1b57d86c79
commit
a4edc31570
2 changed files with 0 additions and 6 deletions
|
@ -54,7 +54,6 @@ struct DiracWorkspace{T}
|
||||||
|
|
||||||
function DiracWorkspace(::Type{G}, ::Type{T}, lp::SpaceParm{4,6,B,D}) where {G,T <: AbstractFloat, B,D}
|
function DiracWorkspace(::Type{G}, ::Type{T}, lp::SpaceParm{4,6,B,D}) where {G,T <: AbstractFloat, B,D}
|
||||||
|
|
||||||
@timeit "Allocating DiracWorkspace" begin
|
|
||||||
if G == SU3fund
|
if G == SU3fund
|
||||||
sr = scalar_field(Spinor{4,G}, lp)
|
sr = scalar_field(Spinor{4,G}, lp)
|
||||||
sp = scalar_field(Spinor{4,G}, lp)
|
sp = scalar_field(Spinor{4,G}, lp)
|
||||||
|
@ -70,7 +69,6 @@ struct DiracWorkspace{T}
|
||||||
st = scalar_field(Spinor{4,G}, lp)
|
st = scalar_field(Spinor{4,G}, lp)
|
||||||
csw = tensor_field(U2alg{T},lp)
|
csw = tensor_field(U2alg{T},lp)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
return new{T}(sr,sp,sAp,st,csw,cs)
|
return new{T}(sr,sp,sAp,st,csw,cs)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
Base.zero(::Type{SU2fund{T}}) where T <: AbstractFloat = SU2fund{T}(zero(T),zero(T))
|
|
||||||
Random.rand(rng::AbstractRNG, ::Random.SamplerType{SU2fund{T}}) where T <: AbstractFloat = SU2fund{T}(complex(randn(rng,T),randn(rng,T)),
|
|
||||||
complex(randn(rng,T),randn(rng,T)))
|
|
||||||
|
|
||||||
|
|
||||||
SU2fund(a::T, b::T) where T <: AbstractFloat = SU2fund{T}(complex(a), complex(b))
|
SU2fund(a::T, b::T) where T <: AbstractFloat = SU2fund{T}(complex(a), complex(b))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue