From ad666a41d0794955e5d44c5638ef7854692b2e88 Mon Sep 17 00:00:00 2001 From: Nuwan Yapa Date: Wed, 15 Jan 2025 17:38:01 -0500 Subject: [PATCH] Verbose bugs fixed --- EC.jl | 2 -- ho_basis.jl | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/EC.jl b/EC.jl index 692f282..727f88a 100644 --- a/EC.jl +++ b/EC.jl @@ -72,8 +72,6 @@ function extrapolate!(EC::affine_EC, c_vals; ref_eval=EC.training_E[end], verbos @assert EC.trained "EC model must be trained using train() before extrapolation" for c in c_vals - verbose && println("Extact solution for c = $c") - global current_E if isnothing(precalculated_exact_E) diff --git a/ho_basis.jl b/ho_basis.jl index 80d88ce..ebbc769 100644 --- a/ho_basis.jl +++ b/ho_basis.jl @@ -248,15 +248,15 @@ function get_3b_H_matrix(coord_system::coordinate_system, V_of_r, μω_global, E μ1 = μ2 = μ = m/2 end - verbose || println("No of threads = ", Threads.nthreads()) + verbose && println("No of threads = ", Threads.nthreads()) @time "Basis" basis = ho_basis_2B(E_max, Λ) - verbose || println("Basis size = ", basis.dim) + verbose && println("Basis size = ", basis.dim) out = spzeros(basis.dim, basis.dim) if kinetic_part - verbose || println("Constructing KE matrices") + verbose && println("Constructing KE matrices") @time "T1" out += get_sp_T_matrix(basis.n1s, basis.l1s, [basis.n2s, basis.l2s]; μω_gen=μ1ω1, μ=μ1) @time "T2" out += get_sp_T_matrix(basis.n2s, basis.l2s, [basis.n1s, basis.l1s]; μω_gen=μ2ω2, μ=μ2) if coord_system == src @@ -265,7 +265,7 @@ function get_3b_H_matrix(coord_system::coordinate_system, V_of_r, μω_global, E end if potential_part - verbose || println("Constructing PE matrices") + verbose && println("Constructing PE matrices") if coord_system == jacobi @time "V" out += get_jacobi_V_matrix(V_of_r, basis, μ1ω1, μω_global; atol=atol, maxevals=maxevals) elseif coord_system == src