1
0
mirror of https://github.com/kalmarek/SmallHyperbolic synced 2024-11-27 16:35:26 +01:00

fix: new_λ is 0.8λ, not 0.008λ

This commit is contained in:
kalmarek 2020-02-26 14:48:09 +01:00
parent 1e217552b0
commit 73a58f0697
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
2 changed files with 5 additions and 4 deletions

View File

@ -53,11 +53,11 @@ let GROUP = ARGS[1]
global_logger(logger) global_logger(logger)
@info "" group_name @info "" group_name
certified_λ, λ = check_propertyT(groups[GROUP], group_name, spectral_gap, λ = check_propertyT(groups[GROUP], group_name,
HALFRADIUS, Inf, AutomaticStructure, with_SCS(100_000, 50)) HALFRADIUS, Inf, AutomaticStructure, with_SCS(100_000, 50))
if certified_λ < 0.0 && λ > 0.01 # there is still a chance to detect spectral gap if spectral_gap < 0.0 && λ > 0.01 # there is still a chance to detect spectral gap
new_λ = round(0.8λ, sigdigits=2) new_λ = round(0.8λ, sigdigits=3)
new_dir = joinpath(group_name, "$new_λ") new_dir = joinpath(group_name, "$new_λ")
isdir(new_dir) || mkpath(new_dir) isdir(new_dir) || mkpath(new_dir)
cp(joinpath(group_name, "Inf", "warmstart.jld"), joinpath(new_dir, "warmstart.jld"), force=true) cp(joinpath(group_name, "Inf", "warmstart.jld"), joinpath(new_dir, "warmstart.jld"), force=true)

View File

@ -38,6 +38,7 @@ function check_propertyT(sett::PropertyT.Settings)
S = gens(RG.group) S = gens(RG.group)
S = unique!([S; inv.(S)]) S = unique!([S; inv.(S)])
@assert length(S) == 6
Δ = RG(length(S)) - sum(RG(s) for s in S) # small Laplacian Δ = RG(length(S)) - sum(RG(s) for s in S) # small Laplacian
@info "Checking the positivity of" Δ @info "Checking the positivity of" Δ
@ -61,7 +62,7 @@ function check_propertyT(sett::PropertyT.Settings)
PropertyT.interpret_results(sett, certified_λ/100) PropertyT.interpret_results(sett, certified_λ/100)
return certified_λ/100, λ/100 return certified_λ/100, λ
end end
function load_basis!(RG::GroupRing, sett::PropertyT.Settings) function load_basis!(RG::GroupRing, sett::PropertyT.Settings)