Skip to content

Commit

Permalink
Merge pull request #50
Browse files Browse the repository at this point in the history
runtest for Julia 1.10
  • Loading branch information
ytdHuang authored Jan 17, 2024
2 parents 86965d6 + cacb0c8 commit 8c277bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
matrix:
# for Core functionalities
julia-version:
- '1'
- '1.9'
os:
- ubuntu-latest
Expand Down
7 changes: 0 additions & 7 deletions src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,29 @@ PrecompileTools.@setup_workload begin
# they belong to your package or not (on Julia 1.8 and higher)

# precompile bath and exponents
@info "Precompiling Bath and Exponent..."
bB[1:end]
fB[1:end]
for b in bB nothing end
for b in fB nothing end

# precompile HEOM matrices
@info "Precompiling HEOM Liouvillian superoperator matrices..."
Ms = M_S(Hs; verbose=false)
Mb = M_Boson(Hs, 2, bB; verbose=false, threshold=1e-6)
Mfe = M_Fermion(Hs, 5, fB, EVEN; verbose=false, threshold=1e-8)
Mfo = M_Fermion(Hs, 5, fB, ODD; verbose=false, threshold=1e-8)
Mbfe = M_Boson_Fermion(Hs, 2, 2, bB, fB; verbose=false, threshold=1e-6)

# precompile Steadystate
@info "Precompiling steady state solver..."
ados1 = SteadyState(Mfe; verbose=false)
ados1 = SteadyState(Mfe, ρ0; verbose=false)
E1 = Expect(Hs, ados1)

# precompile evolution
@info "Precompiling time evolution solver..."
ados2 = evolution(Mb, ρ0, 0:1:1; verbose=false)
ados2 = evolution(Mb, ρ0, 1, 1; verbose=false)
E2 = Expect(Hs, ados2)

# precompile ADOs for the support of Base functions
@info "Precompiling Auxiliary Density Operators (ADOs)..."
ados3 = ADOs(zeros(8), 2)
length(ados3)
getRho(ados3)
Expand All @@ -51,9 +46,7 @@ PrecompileTools.@setup_workload begin
for ad in ados3 nothing end

# precompile Spectrum functions
@info "Precompiling solvers for calculating spectrum..."
psd = PowerSpectrum( Mfo, ados1, d, [1]; verbose=false)
dos = DensityOfStates(Mfo, ados1, d, [1]; verbose=false)
end
@info "HierarchicalEOM precompilation complete"
end

0 comments on commit 8c277bc

Please sign in to comment.