Skip to content

Commit 8789dcb

Browse files
committed
add check for wmin
1 parent 709b4a7 commit 8789dcb

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This toolkit is currently under developement. **PLEASE USE IT AT YOUR OWN RISK!*
66

77
## Version
88

9-
v1.8.6-devel.240716
9+
v1.8.6-devel.240718
1010

1111
## License
1212

src/base.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Author : Li Huang (huangli@caep.cn)
55
# Status : Unstable
66
#
7-
# Last modified: 2024/07/15
7+
# Last modified: 2024/07/18
88
#
99

1010
"""
@@ -443,10 +443,19 @@ function make_mesh(; T::DataType = F64)
443443
end
444444

445445
# Get essential parameters
446+
ktype = get_b("ktype")
446447
nmesh = get_b("nmesh")
447448
mesh = get_b("mesh")
448449
wmax::T = get_b("wmax")
449450
wmin::T = get_b("wmin")
451+
#
452+
# For bosonic correlators of Hermitian operators, the spectral
453+
# function is defined in (0, ∞) only.
454+
if ktype == "bsymm"
455+
@assert wmin 0.0
456+
@assert wmax 0.0
457+
@assert wmax > wmin
458+
end
450459

451460
# Try to generate the required mesh
452461
@cswitch mesh begin

src/global.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Author : Li Huang (huangli@caep.cn)
55
# Status : Unstable
66
#
7-
# Last modified: 2024/07/16
7+
# Last modified: 2024/07/18
88
#
99

1010
#=
@@ -172,7 +172,7 @@ Version of this julia toolkit.
172172
173173
See also: [`__RELEASE__`](@ref).
174174
"""
175-
const __VERSION__ = v"1.8.6-devel.240716"
175+
const __VERSION__ = v"1.8.6-devel.240718"
176176

177177
"""
178178
__RELEASE__

0 commit comments

Comments
 (0)