Skip to content

Commit e811fcb

Browse files
committed
Fix instability
1 parent e4c7be4 commit e811fcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_entangled_units.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ end
7373
ω_ref(q, J, J′) = J*sqrt(1 + 2(J′/J) * cos(2π*q))
7474
ωs_analytical = ω_ref.([q[1] for q in qs], J, J′)
7575

76+
set_field!(esys, [0, 0, 0])
7677
for unit in Sunny.eachunit(esys)
7778
set_coherent!(esys, [0, 1/√2, -1/√2, 0], unit)
7879
end
7980
swt = SpinWaveTheory(esys; measure=Sunny.empty_measurespec(sys), regularization=0.0)
80-
disp = dispersion(swt, qptss)
81+
disp = dispersion(swt, qpts)
8182
ωs_numerical = disp[1,:]
8283

8384
@test all(both -> isapprox(both[1], both[2]; atol=1e-12), zip(ωs_analytical, ωs_numerical))

0 commit comments

Comments
 (0)