Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleBug committed Jun 16, 2023
1 parent e1235c2 commit 495633d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ElectronGas"
uuid = "8c98e03e-8755-48b1-a5ef-1e2e7812a7c9"
authors = ["Xiansheng Cai, Pengcheng Hou, Kun Chen"]
version = "0.2.4"
version = "0.2.5"

[deps]
CompositeGrids = "b5136c89-beeb-4521-9139-60d2cac8be56"
Expand Down
3 changes: 2 additions & 1 deletion src/polarization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ function finitetemp_kgrid_ladder(μ::Float64, m::Float64, q::Float64, kF::Float6
mink = (q < 1e-16 / minterval) ? minterval * kF : minterval * min(q, kF)
mixX = mink / (1 + mink)
if q >= sqrt(8 * μ * m)
kgrid = CompositeGrid.LogDensedGrid(:gauss, [0.0, 1.0], [0.0, kF], scaleN, mink, gaussN)
x = kF / (1 + kF)
kgrid = CompositeGrid.LogDensedGrid(:gauss, [0.0, 1.0], [0.0, x], scaleN, mink, gaussN)
else
k1 = abs(q - sqrt(8 * μ * m - q^2)) / 2
k2 = (q + sqrt(8 * μ * m - q^2)) / 2
Expand Down

2 comments on commit 495633d

@kunyuan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/85756

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.5 -m "<description of version>" 495633d7b87739bcfa2fb41de08ef4097f78a4a0
git push origin v0.2.5

Please sign in to comment.