Skip to content

Commit

Permalink
Merge pull request #43 from numericalEFT/shhu
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
peter0627ustc authored Dec 2, 2024
2 parents 10a5afc + 9e6dd11 commit 4742f77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sigma/sigmaKW.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ function integrandKW(idx, vars, config)
varK, varT, varN, ExtKidx = vars
para, kgrid, ngrid, MaxLoopNum, extT_labels = config.userdata[1:5]
leafval, leafType, leafOrders, leafτ_i, leafτ_o, leafMomIdx = config.userdata[6]
momLoopPool, root = config.userdata[7:8]
graphfuncs! = config.userdata[9][idx]
leaf_maps, momLoopPool, root = config.userdata[7:9]
graphfuncs! = config.userdata[10][idx]
isLayered2D = config.userdata[end]
dim, β, me, λ, μ, e0, ϵ0 = para.dim, para.β, para.me, para.mass2, para.μ, para.e0, para.ϵ0

extidx = ExtKidx[1]
varK.data[1, 1] = kgrid[extidx]
FrontEnds.update(momLoopPool, varK.data[:, 1:MaxLoopNum])
# test
if para.isDynamic
tau_num = 2
else
Expand All @@ -26,8 +27,11 @@ function integrandKW(idx, vars, config)
order = leafOrders[idx][i][1]
leafval[idx][i] = Propagator.green_derive(τ, ϵ, β, order)
elseif lftype == 2 #bosonic
diagid = leaf_maps[idx][i].properties
kq = FrontEnds.loop(momLoopPool, leafMomIdx[idx][i])
τ2, τ1 = varT[leafτ_o[idx][i]], varT[leafτ_i[idx][i]]
order = leafOrders[idx][i][2]
idorder = leafOrders[idx][i]
if dim == 3
leafval[idx][i] = Propagator.interaction_derive(τ1, τ2, kq, para, idorder; idtype=diagid.type, tau_num=tau_num)
# invK = 1.0 / (dot(kq, kq) + λ)
Expand Down

0 comments on commit 4742f77

Please sign in to comment.