Skip to content

Commit

Permalink
Print what is done in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Jan 25, 2020
1 parent 6e3e8ae commit c22badf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/scf_compare.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ include("testcases.jl")
ρ_nl = scfres.ρ.fourier

# Run DM
println("\nTesting direct minimization")
dmres = direct_minimization(basis; g_tol=1e-8)
ρ_dm = dmres.ρ.fourier
@test maximum(abs.(ρ_dm - ρ_nl)) < 30tol
Expand All @@ -27,7 +28,7 @@ include("testcases.jl")
ρ0 = guess_density(basis, Si => silicon.positions)
for solver in (scf_nlsolve_solver, scf_damping_solver, scf_anderson_solver,
scf_CROP_solver)
println("Testing $solver")
println("\nTesting $solver")
scfres = self_consistent_field(Hamiltonian(basis, ρ0), n_bands, tol=tol, solver=solver())
ρ_alg = scfres.ρ.fourier
@test maximum(abs.(ρ_alg - ρ_nl)) < 30tol
Expand Down

0 comments on commit c22badf

Please sign in to comment.