Commit e6374fc4 authored by Tiago Peixoto's avatar Tiago Peixoto

Wang-Landau sampling: Tune flatness criterion

parent 5955ae7f
......@@ -485,7 +485,7 @@ class MulticanonicalState(object):
S_min, S_max = self.get_allowed_energies()
h = array(h[numpy.logical_and(Ss >= S_min, Ss <= S_max)],
dtype="float")
if len(h) == 1:
if len(h) == 1 and h.sum() < 1000:
h = array([1e-6] + list(h))
if not use_ent:
h_mean = h.mean()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment