Skip to content

Commit 1b0cda8

Browse files
committed
Merge branch 'surface_twist_fluctuation' of github.com:CFT-HY/HILA into surface_twist_fluctuation
2 parents 811fdbd + 1fe4b4f commit 1b0cda8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+4900
-1537
lines changed

.github/workflows/generate-doxygen-for-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- documentation
9+
- master
910

1011
# Allows you to run this workflow manually from the Actions tab
1112
workflow_dispatch:

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ docs/latex/
1616
docs/html/*
1717
!docs/html/images/
1818
latex/
19-
html/
19+
html/
20+
.vs/slnx.sqlite
21+
*config*
22+
*run_status

applications/suN_gauge/src/checkpoint.h

Lines changed: 0 additions & 73 deletions
This file was deleted.

applications/suN_gauge/src/suN_gauge.cpp

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
#include "gauge/stout_smear.h"
1313
#include "gauge/sun_heatbath.h"
1414
#include "gauge/sun_overrelax.h"
15+
#include "tools/checkpoint.h"
16+
1517

1618
#include <fftw3.h>
1719

1820
// local includes
1921
#include "parameters.h"
20-
#include "checkpoint.h"
2122

2223
/**
2324
* @brief Helper function to get valid z-coordinate index
@@ -71,12 +72,16 @@ void measure_stuff(const GaugeField<group> &U, const parameters &p) {
7172
template <typename group>
7273
void update(GaugeField<group> &U, const parameters &p, bool relax) {
7374

74-
foralldir(d) {
75-
for (Parity par : {EVEN, ODD}) {
75+
// go through dirs in random order
7676

77-
update_parity_dir(U, p, par, d, relax);
78-
}
77+
for (auto &dp : hila::shuffle_directions_and_parities()) {
78+
79+
update_parity_dir(U, p, dp.parity, dp.direction, relax);
7980
}
81+
82+
// for (Parity par : {EVEN, ODD}) foralldir(d) {
83+
// update_parity_dir(U, p, par , d, relax);
84+
// }
8085
}
8186

8287
/**
@@ -210,7 +215,7 @@ int main(int argc, char **argv) {
210215
hila::timer update_timer("Updates");
211216
hila::timer measure_timer("Measurements");
212217

213-
restore_checkpoint(U, start_traj, p);
218+
restore_checkpoint(U, p.config_file, p.n_trajectories, start_traj);
214219

215220
// We need random number here
216221
if (!hila::is_rng_seeded())
@@ -244,9 +249,9 @@ int main(int argc, char **argv) {
244249
}
245250

246251
if (p.n_save > 0 && (trajectory + 1) % p.n_save == 0) {
247-
checkpoint(U, trajectory, p);
252+
checkpoint(U, p.config_file, p.n_trajectories, trajectory);
248253
}
249254
}
250255

251256
hila::finishrun();
252-
}
257+
}

applications/suN_gauge_gf/Makefile

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
2+
# Following line(s) are printed with "make help". Use columns 8 and 30
3+
#% make [suN_gauge_gf] - build suN_gauge_gf program
4+
#% suN_gauge_gf make options
5+
#% NCOL=<N> - SU(N) gauge simulation program (default: 3)
6+
#% SUN_OVERRELAX_dFJ=1 - use deForcrand-Jahn full overrelax (default: su2 subgroups)
7+
#% GFLOWS=<K> - Gauge action for gradient flow:
8+
#% K=0: "WILSON"
9+
#% K=1: "Bulk-Prevention"
10+
#% K=2: "Luscher-Weisz"
11+
#% K=3: "IWASAKI" (default)
12+
#% K=4: "DBW2"
13+
14+
# Give the location of the top level distribution directory wrt. this location.
15+
# Can be absolute or relative
16+
HILA_DIR := ../..
17+
18+
# Number of colors
19+
NCOL := 3
20+
21+
# Gauge action for gradient flow update:
22+
# "WILSON": 0, "BP": 1, "LW": 2, "IWASAKI": 3, "DBW2": 4
23+
GFLOWS := 3
24+
25+
26+
ifndef ARCH
27+
ARCH := vanilla
28+
endif
29+
30+
# Set default goal and arch
31+
.DEFAULT_GOAL := suN_gauge_gf
32+
33+
# Read in the main makefile contents, incl. platforms
34+
include $(HILA_DIR)/libraries/main.mk
35+
36+
#HILAPP_OPTS += -insert-includes
37+
#HILAPP_OPTS += -comment-pragmas
38+
HILAPP_OPTS += -check-init
39+
40+
APP_OPTS += -DNDIM=4 -DNCOLOR=${NCOL} -DGFLOWACTION=${GFLOWS}
41+
42+
ifdef SUN_OVERRELAX_dFJ
43+
APP_OPTS += -DSUN_OVERRELAX_dFJ
44+
endif
45+
46+
# With multiple targets we want to use "make target", not "make build/target".
47+
# This is needed to carry the dependencies to build-subdir
48+
49+
suN_gauge_gf: build/su${NCOL}_gauge_gf_fs${GFLOWS}_${ARCH} ; @:
50+
51+
# Now the linking step for each target executable
52+
build/su${NCOL}_gauge_gf_fs${GFLOWS}_${ARCH}: Makefile build/suN_gauge_gf.o $(HILA_OBJECTS) $(HEADERS)
53+
$(LD) -o $@ build/suN_gauge_gf.o $(HILA_OBJECTS) $(LDFLAGS) $(LDLIBS)
54+
55+
56+
57+
58+
59+
60+
61+

applications/suN_gauge_gf/parameters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This is a parameter file for SUN_gauge_gf
2+
3+
lattice size 12,12,12,12
4+
beta 6.
5+
number of trajectories 302
6+
updates in trajectory 1
7+
overrelax steps 4
8+
thermalization trajs 50
9+
gflow freq 100
10+
gflow max lambda 12.
11+
gflow lambda step 0.1
12+
gflow abs. accuracy 1.0e-5
13+
gflow rel. accuracy 1.0e-5
14+
random seed 0
15+
trajs/saved 200
16+
config name config

0 commit comments

Comments
 (0)