Skip to content

Commit a470b0d

Browse files
committed
Merge branch 'main' of github.com:ChrisWoodgate/BraWl
2 parents c7f72ad + eccb8ed commit a470b0d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

examples/02_wang-landau_AlTiCrMo/wl_input.inp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mc_sweeps=100
22
bins=512
33
num_windows=4
4-
bin_overlap=64
4+
bin_overlap=4
55
tolerance=1e-6
66
flatness=0.90
77
wl_f=0.05

examples/02_wang-landau_AlTiCrMo/wl_vis.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,7 @@ def inner_mod(a,b):
288288

289289
# Filter out ticks within the margin
290290
x_ticks_filtered = [tick for tick in x_ticks if x_min + x_margin <= tick <= x_max - x_margin or tick == 0]
291-
y_ticks_filtered = [tick for tick in y_ticks if y_min + y_margin <= tick <= y_max - y_margin or tick == 0]
292-
291+
y_ticks_filtered = [tick for tick in y_ticks if y_min + y_margin <= tick <= y_max - y_margin or tick == 0]
293292

294293
# Set the new ticks
295294
#ax.set_xticks(x_ticks_filtered)

src/wang-landau.F90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,11 @@ subroutine sweeps(wl_logdos, mpi_wl_hist)
564564
else
565565
! reject and reset
566566
call pair_swap(config, rdm1, rdm2)
567+
jbin = ibin
568+
if (MOD(i,INT(0.02_real64*REAL(setup_internal%n_atoms))) == 0) then
569+
mpi_wl_hist(jbin - mpi_start_idx + 1) = mpi_wl_hist(jbin - mpi_start_idx + 1) + 1.0_real64
570+
end if
571+
wl_logdos(jbin) = wl_logdos(jbin) + wl_f
567572
end if
568573
end do
569574

0 commit comments

Comments
 (0)