Skip to content

Commit

Permalink
fixed a bug about ndegen in landau_level_sparse.f90 reported by Yan Z…
Browse files Browse the repository at this point in the history
…hang
  • Loading branch information
quanshengwu committed May 8, 2024
1 parent 2afa9a3 commit 307942d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/landau_level_sparse.f90
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ subroutine ham_3Dlandau_sparseHR(nnz, Ndimq, Nq, k, acoo,jcoo,icoo)
phase=phase2(Ri,Rj)
fac= cos(phase)+ zi*sin(phase)

tmp=hacoo(ims)*ratio/ndegen(iR)* fac
tmp=hacoo(ims)*ratio* fac
if(abs(tmp)/eV2Hartree > 1e-6) then
ncoo=ncoo+1
icoo(ncoo)=hicoo(ims)+(i1-1)*Num_wann
Expand Down Expand Up @@ -500,7 +500,7 @@ subroutine ham_3Dlandau_sparseHR(nnz, Ndimq, Nq, k, acoo,jcoo,icoo)
phase=phase2(Ri,Rj)
fac= cos(phase)+ zi*sin(phase)

tmp=hacoo(ims)*ratio/ndegen(iR)* fac
tmp=hacoo(ims)*ratio* fac
if(abs(tmp)/eV2Hartree > 1e-6) then
ncoo=ncoo+1
icoo(ncoo)=hicoo(ims)+(i1-1)*Num_wann
Expand Down

0 comments on commit 307942d

Please sign in to comment.