Skip to content

Commit

Permalink
Intermediate commit
Browse files Browse the repository at this point in the history
Superconductive: same ratio as commit b0ed041
but for the anomalous Green's function
  • Loading branch information
lcrippa committed Jan 16, 2025
1 parent fbd357d commit d84fdf6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ED_SUPERC/ED_GF_SUPERC.f90
Original file line number Diff line number Diff line change
Expand Up @@ -672,13 +672,13 @@ subroutine lanc_build_gf_superc_Fmix(iorb,jorb)
endif
!
!
!EVALUATE [c^+_{up,iorb} - xi*c_{dw,jorb}]|gs> += -xi*<P.Pdg>
!EVALUATE [c^+_{up,iorb} + xi*c_{dw,jorb}]|gs> += -xi*<P.Pdg>
isz = getsz(isector)
if(isz<Ns)then
jsector = getsector(isz+1,1)
if(MpiMaster)then
call build_sector(jsector,sectorJ)
if(ed_verbose>=3)write(LOGfile,"(A23,I3)")'apply cdg_a,up - xi*c_b,dw:',sectorJ%Sz
if(ed_verbose>=3)write(LOGfile,"(A23,I3)")'apply cdg_a,up + xi*c_b,dw:',sectorJ%Sz
allocate(vvinit(sectorJ%Dim)) ; vvinit=zero
do i=1,sectorI%Dim
call apply_op_CDG(i,j,sgn,iorb,ialfa,1,sectorI,sectorJ)!Cdg_a,up
Expand All @@ -688,7 +688,7 @@ subroutine lanc_build_gf_superc_Fmix(iorb,jorb)
do i=1,sectorI%Dim
call apply_op_C(i,j,sgn,jorb,ialfa,2,sectorI,sectorJ) !-xi*c_b,dw
if(sgn==0d0.OR.j==0)cycle
vvinit(j) = vvinit(j) - xi*sgn*state_cvec(i)
vvinit(j) = vvinit(j) + xi*sgn*state_cvec(i)
enddo
call delete_sector(sectorJ)
else
Expand All @@ -703,13 +703,13 @@ subroutine lanc_build_gf_superc_Fmix(iorb,jorb)
call allocate_GFmatrix(impGmatrix(Nnambu,Nnambu,iorb,jorb),istate,3,Nexc=0)
endif
!
!EVALUATE [c_{up,iorb} + xi*c^+_{dw,jorb}]|gs> += -xi*<Pdg.P>
!EVALUATE [c_{up,iorb} - xi*c^+_{dw,jorb}]|gs> += -xi*<Pdg.P>
isz = getsz(isector)
if(isz>-Ns)then
jsector = getsector(isz-1,1)
if(MpiMaster)then
call build_sector(jsector,sectorJ)
if(ed_verbose>=3)write(LOGfile,"(A23,I3)")'apply c_a,up + xi*cdg_b,dw:',sectorJ%Sz
if(ed_verbose>=3)write(LOGfile,"(A23,I3)")'apply c_a,up - xi*cdg_b,dw:',sectorJ%Sz
allocate(vvinit(sectorJ%Dim)) ; vvinit=zero
do i=1,sectorI%Dim
call apply_op_C(i,j,sgn,iorb,ialfa,1,sectorI,sectorJ)!c_a,up
Expand All @@ -719,7 +719,7 @@ subroutine lanc_build_gf_superc_Fmix(iorb,jorb)
do i=1,sectorI%Dim
call apply_op_CDG(i,j,sgn,jorb,ialfa,2,sectorI,sectorJ) !+xi*c^+_b,dw
if(sgn==0d0.OR.j==0)cycle
vvinit(j) = vvinit(j) + xi*sgn*state_cvec(i)
vvinit(j) = vvinit(j) - xi*sgn*state_cvec(i)
enddo
call delete_sector(sectorJ)
else
Expand Down

0 comments on commit d84fdf6

Please sign in to comment.