dpar.rep changed to parametric definition

parent b50787f1
...@@ -19,12 +19,20 @@ using ..Fields ...@@ -19,12 +19,20 @@ using ..Fields
using ..YM using ..YM
using ..Spinors using ..Spinors
struct DiracParam{T} struct DiracParam{T,R}
rep
m0::T m0::T
csw::T csw::T
th::NTuple{4,Complex{T}} th::NTuple{4,Complex{T}}
ct::T ct::T
function DiracParam{T}(::Type{R},m0,csw,th,ct) where {T,R}
return new{T,R}(m0,csw,th,ct)
end
function DiracParam{T}(m0,csw,th,ct) where {T}
return new{T,SU3fund}(m0,csw,th,ct)
end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment