Skip to content

Commit

Permalink
Merge branch 'master' of github.com:daschaich/susy
Browse files Browse the repository at this point in the history
  • Loading branch information
daschaich committed Oct 23, 2022
2 parents e4b447b + d9bd849 commit 2fec7e3
Show file tree
Hide file tree
Showing 27 changed files with 875 additions and 793 deletions.
5 changes: 3 additions & 2 deletions 2d_Q04/susy/Make_template
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ MY_OBJECTS = setup.o \
unit.o \
scalar_eig.o \
link_trace.o \
tr_xsq.o \
widths.o \
determinant.o \
grsource.o \
Expand Down Expand Up @@ -113,7 +114,7 @@ susy_meas::
"LAPACK = -llapack -lblas " \
"EXTRA_OBJECTS = control_meas.o konishi.o correlator_r.o rsymm.o monopole.o \
bilinearWard.o hvy_pot.o hvy_pot_polar.o hvy_pot_loop.o \
hvy_pot_polar_loop.o path.o smear.o local_plaq.o tr_xsq.o "
hvy_pot_polar_loop.o path.o smear.o local_plaq.o "

susy_hmc_meas::
${MAKE} -f ${MAKEFILE} target "MYTARGET= $@" \
Expand All @@ -123,7 +124,7 @@ susy_hmc_meas::
"EXTRA_OBJECTS = control.o update_o.o update_h.o setup_rhmc.o det_force.o \
konishi.o correlator_r.o rsymm.o hvy_pot.o monopole.o \
hvy_pot_polar.o path.o bilinearWard.o hvy_pot_loop.o \
hvy_pot_polar_loop.o smear.o local_plaq.o tr_xsq.o "
hvy_pot_polar_loop.o smear.o local_plaq.o "

susy_mcrg::
${MAKE} -f ${MAKEFILE} target "MYTARGET= $@" \
Expand Down
4 changes: 2 additions & 2 deletions 2d_Q04/susy/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ int main(int argc, char *argv[]) {
j, ave_eigs[j], eig_widths[j], min_eigs[j], max_eigs[j]);
}

// Measure Tr[X^2] / N
measure_tr_xsq();
// Monitor Tr[X^2] / N and Tr([X_t, X_x]^2) / N
tr_xsq();

// Less frequent measurements every "propinterval" trajectories
if ((traj_done % propinterval) == (propinterval - 1)) {
Expand Down
4 changes: 2 additions & 2 deletions 2d_Q04/susy/control_meas.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ int main(int argc, char *argv[]) {
j, ave_eigs[j], eig_widths[j], min_eigs[j], max_eigs[j]);
}

// Measure Tr[X^2] / N
measure_tr_xsq();
// Monitor Tr[X^2] / N and Tr([X_t, X_x]^2) / N
tr_xsq();

#ifdef CORR
// Konishi and SUGRA correlators
Expand Down
4 changes: 2 additions & 2 deletions 2d_Q04/susy/susy_includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void plaquette(double *plaq);
double local_plaquette(double *plaq); // Return max plaq
complex ploop(int dir, int project, double *plpMod);

// Measure Tr X^2
void measure_tr_xsq();
// Measure Tr[X^2] / N and Tr([X_t, X_x]^2) / N
void tr_xsq();

// Scalar eigenvalues: averages, extrema and width
// #define SCALAR_EIG_DIST to print all eigenvalues in serial
Expand Down
29 changes: 19 additions & 10 deletions 2d_Q04/susy/tr_xsq.c
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
// -----------------------------------------------------------------
// Measure Tr[X^2] / N, where X is the scalar field
// Measure Tr[X^2] / N and Tr([X_t, X_x]^2) / N
// Here X is the scalar field
// from the log of hermitian part of the polar decomposition
// Seems surprisingly sensitive to stout smearing
#include "susy_includes.h"

void measure_tr_xsq() {
void tr_xsq() {
register int i, dir;
register site *s;
double norm = 1.0 / ((double)(NUMLINK * volume * NCOL));
complex tc, tr_xsq = cmplx(0.0, 0.0);
matrix X, tmat;
double norm_comm = 1.0 / ((double)(volume * NCOL));
complex tc, tr_xsq = cmplx(0.0, 0.0), tr_x_comm = cmplx(0.0, 0.0);
matrix X[NDIMS], tmat;

FORALLSITES(i, s) {
FORALLDIR(dir) {
polar(&(s->link[dir]), &X, &tmat);
matrix_log(&tmat, &X);

// Note that we sum over both links
// and don't normalize by 2 below...
tc = complextrace_nn(&X, &X);
polar(&(s->link[dir]), &(X[dir]), &tmat);
matrix_log(&tmat, &(X[dir]));
tc = complextrace_nn(&(X[dir]), &(X[dir]));
CSUM(tr_xsq, tc);
}
mult_nn(&(X[0]), &(X[1]), &tmat);
mult_nn_dif(&(X[1]), &(X[0]), &tmat);
tc = complextrace_nn(&tmat, &tmat);
CSUM(tr_x_comm, tc);
}
CMULREAL(tr_xsq, norm, tr_xsq);
g_complexsum(&tr_xsq);
CMULREAL(tr_x_comm, norm_comm, tr_x_comm);
g_complexsum(&tr_x_comm);

if (fabs(tr_xsq.imag) > IMAG_TOL)
node0_printf("WARNING Im(tr_xsq) = %.4g\n", tr_xsq.imag);
if (fabs(tr_x_comm.imag) > IMAG_TOL)
node0_printf("WARNING Im(tr_x_comm) = %.4g\n", tr_x_comm.imag);

node0_printf("TR_XSQ %.8g\n", tr_xsq.real);
node0_printf("TR_X_COMM %.8g\n", tr_x_comm.real);
}
// -----------------------------------------------------------------
66 changes: 36 additions & 30 deletions 2d_Q04/testsuite/mpi/hmc.U2.ref
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microcanonical simulation with refreshing
Machine = MPI (portable), with 2 nodes
Hybrid Monte Carlo algorithm
Phi algorithm
start: Sun Nov 15 15:20:17 2020
start: Tue Sep 6 21:20:14 2022

type 0 for no prompts or 1 for prompts
nx 4
Expand Down Expand Up @@ -42,7 +42,7 @@ C2=1
Restored binary gauge configuration serially from file config.U2.44
Time stamp Mon Oct 9 05:51:48 2017
Checksums 564ac1d0 2e34c445 OK
Time to reload gauge configuration = 1.019216e-02
Time to reload gauge configuration = 1.990795e-04
CHECK PLAQ: 2.2519455027090265e+00
CHECK NERSC LINKTR: -1.9631678282166831e-02 CKSUM: 0
START 2.2519455 5.2454357
Expand All @@ -51,62 +51,68 @@ FLINK_DET -1.12295 -0.964493 -1.04372 0.681177
f_eps 0.2 g_eps 0.025
WARMUPS COMPLETED
action: gauge 83.926971 bmass 2.5654629 det 2.9631582 fermion0 250.19257 mom 149.61478 sum 489.26294
action: gauge 67.94875 bmass 2.4840648 det 5.538734 fermion0 260.1977 mom 153.1013 sum 489.27055
ACCEPT: delta S = 0.007605 start S = 489.262941194 end S = 489.270545836
IT_PER_TRAJ 776
action: gauge 67.948749 bmass 2.4840649 det 5.5387343 fermion0 260.1977 mom 153.1013 sum 489.27055
ACCEPT: delta S = 0.007605 start S = 489.262940849 end S = 489.270545557
IT_PER_TRAJ 777
MONITOR_FORCE_GAUGE 0.05796 0.06246
MONITOR_FORCE_FERMION0 0.06955 0.1024
FLINK 0.935219 1.60455 1.26988 0.487516
GMES 4.9381849 0.0076228346 776 1.5530598 4.2467969 5.3628585
BACTION 4.2467969
LINES 0.129211 -1.28918 4.93818 0.00762283
GMES 4.9381852 0.0076227672 777 1.5530598 4.2467968 5.3628588
BACTION 4.2467968
LINES 0.129211 -1.28918 4.93819 0.00762277
LINES_POLAR -0.649575 -0.762559 1.60317 0.314168
DET 0.543223 -0.0907635 0.593055 0.185732 0.692342
WIDTHS 0.631793 0.545861 0.4213
UUBAR_EIG 0 -0.781367 0.323817 -1.42595 -0.262778
UUBAR_EIG 1 0.781367 0.323817 0.262778 1.42595
POLAR_EIG 0 -0.49775 0.387932 -1.33051 0.227163
POLAR_EIG 1 0.325194 0.188905 -0.0866501 0.661158
action: gauge 67.94875 bmass 2.4840648 det 5.538734 fermion0 249.29993 mom 146.81333 sum 472.0848
action: gauge 84.283285 bmass 2.3014153 det 8.1527084 fermion0 249.48798 mom 127.83023 sum 472.05562
ACCEPT: delta S = -0.02918 start S = 472.084803658 end S = 472.055619732
IT_PER_TRAJ 775
POLAR_EIG 1 0.325194 0.188905 -0.08665 0.661158
TR_XSQ 0.2698412
TR_X_COMM -0.047321179
action: gauge 67.948749 bmass 2.4840649 det 5.5387343 fermion0 249.29993 mom 146.81333 sum 472.0848
action: gauge 84.283283 bmass 2.3014153 det 8.1527083 fermion0 249.48798 mom 127.83023 sum 472.05562
ACCEPT: delta S = -0.02918 start S = 472.084802077 end S = 472.055617311
IT_PER_TRAJ 776
MONITOR_FORCE_GAUGE 0.05692 0.05935
MONITOR_FORCE_FERMION0 0.06422 0.08358
FLINK 1.27985 1.48638 1.38312 0.375365
GMES 2.8107765 -0.76946776 775 1.920807 5.2677053 3.8201516
BACTION 5.2677053
GMES 2.8107765 -0.76946779 776 1.9208069 5.2677052 3.8201516
BACTION 5.2677052
LINES -1.30536 -2.97951 2.81078 -0.769468
LINES_POLAR -0.684839 -0.00975811 1.11449 -0.0539668
LINES_POLAR -0.684839 -0.00975811 1.11449 -0.0539667
DET 0.883613 -0.104085 1.25673 0.529585 1.01909
WIDTHS 0.912379 0.689897 0.720244
UUBAR_EIG 0 -0.874985 0.32151 -1.53939 -0.327911
UUBAR_EIG 1 0.874985 0.32151 0.327911 1.53939
POLAR_EIG 0 -0.467277 0.394767 -1.3257 0.0322948
POLAR_EIG 1 0.388073 0.139231 0.0982643 0.631026
action: gauge 84.283285 bmass 2.3014153 det 8.1527084 fermion0 215.45457 mom 133.50578 sum 443.69776
action: gauge 84.626048 bmass 1.8487196 det 5.5232008 fermion0 220.60155 mom 131.08696 sum 443.68648
ACCEPT: delta S = -0.01128 start S = 443.6977631 end S = 443.686480234
IT_PER_TRAJ 989
POLAR_EIG 0 -0.467277 0.394767 -1.3257 0.0322949
POLAR_EIG 1 0.388073 0.139231 0.0982644 0.631026
TR_XSQ 0.27208725
TR_X_COMM -0.066067679
action: gauge 84.283283 bmass 2.3014153 det 8.1527083 fermion0 215.45457 mom 133.50578 sum 443.69776
action: gauge 84.626046 bmass 1.8487197 det 5.523201 fermion0 220.60155 mom 131.08696 sum 443.68648
ACCEPT: delta S = -0.01128 start S = 443.697760938 end S = 443.686477974
IT_PER_TRAJ 988
MONITOR_FORCE_GAUGE 0.05227 0.05567
MONITOR_FORCE_FERMION0 0.06059 0.07926
FLINK 1.11474 1.49821 1.30648 0.370353
GMES 1.1222059 1.5063624 989 2.1265758 5.289128 3.5988383
BACTION 5.289128
GMES 1.1222056 1.5063625 988 2.1265759 5.2891279 3.5988382
BACTION 5.2891279
LINES -1.85498 0.240189 1.12221 1.50636
LINES_POLAR -0.395812 -0.491808 0.832351 0.287886
DET 0.482493 -0.00254238 0.419434 0.235951 0.6904
DET 0.482493 -0.00254236 0.419434 0.235952 0.6904
WIDTHS 0.661682 0.432013 0.485742
UUBAR_EIG 0 -0.781107 0.261729 -1.26795 -0.260708
UUBAR_EIG 1 0.781107 0.261729 0.260708 1.26795
POLAR_EIG 0 -0.508661 0.532362 -2.08594 0.140793
POLAR_EIG 1 0.352068 0.126297 0.0992188 0.668687
TR_XSQ 0.34102407
TR_X_COMM -0.096746853
RUNNING COMPLETED
STOP 2.1265758 5.289128
Average CG iters for steps: 846.7
STOP 2.1265759 5.2891279
Average CG iters for steps: 847

Time = 0.09756 seconds
total_iters = 2540
Time = 0.1117 seconds
total_iters = 2541

exit: Sun Nov 15 15:20:17 2020
exit: Tue Sep 6 21:20:15 2022

50 changes: 28 additions & 22 deletions 2d_Q04/testsuite/mpi/hmc.U3.ref
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microcanonical simulation with refreshing
Machine = MPI (portable), with 2 nodes
Hybrid Monte Carlo algorithm
Phi algorithm
start: Sun Nov 15 15:21:06 2020
start: Tue Sep 6 21:20:29 2022

type 0 for no prompts or 1 for prompts
nx 4
Expand Down Expand Up @@ -42,7 +42,7 @@ C2=1
Restored binary gauge configuration serially from file config.U3.44
Time stamp Tue Oct 10 01:09:04 2017
Checksums 459cef92 ab23f244 OK
Time to reload gauge configuration = 1.303411e-02
Time to reload gauge configuration = 1.420975e-04
CHECK PLAQ: 3.2052412633093277e+00
CHECK NERSC LINKTR: -3.6629817526166633e-02 CKSUM: 0
START 3.2052413 13.275174
Expand All @@ -51,68 +51,74 @@ FLINK_DET 0.348215 2.70171 1.52496 1.86125
f_eps 0.125 g_eps 0.01562
WARMUPS COMPLETED
action: gauge 212.40278 bmass 8.1380803 det 6.089682 fermion0 600.29695 mom 298.17346 sum 1125.1009
action: gauge 201.59049 bmass 10.123281 det 4.9947154 fermion0 592.29761 mom 316.1116 sum 1125.1177
ACCEPT: delta S = 0.01675 start S = 1125.10094455 end S = 1125.11769315
IT_PER_TRAJ 1814
action: gauge 201.59048 bmass 10.123281 det 4.9947153 fermion0 592.29761 mom 316.1116 sum 1125.1177
ACCEPT: delta S = 0.01674 start S = 1125.10094459 end S = 1125.11768864
IT_PER_TRAJ 1815
MONITOR_FORCE_GAUGE 0.07332 0.07847
MONITOR_FORCE_FERMION0 0.0661 0.08542
FLINK 1.46139 2.11797 1.78968 0.469054
GMES -21.952451 4.536518 1814 2.7905465 12.599405 23.28663
GMES -21.952451 4.5365177 1815 2.7905465 12.599405 23.28663
BACTION 12.599405
LINES 5.3965 1.03968 -21.9525 4.53652
LINES 5.3965 1.03967 -21.9525 4.53652
LINES_POLAR 0.298968 -0.615432 -0.837297 0.297618
DET 0.421785 0.120333 0.324518 0.143392 0.624339
WIDTHS 0.731637 0.382903 0.359043
WIDTHS 0.731637 0.382904 0.359043
UUBAR_EIG 0 -1.56055 0.419513 -2.61491 -1.00248
UUBAR_EIG 1 -0.670045 0.502241 -1.63353 0.0880817
UUBAR_EIG 2 2.23059 0.862715 1.15081 4.24843
POLAR_EIG 0 -0.866618 0.428417 -2.29488 -0.278476
POLAR_EIG 1 0.03319 0.156073 -0.331462 0.292646
POLAR_EIG 2 0.671778 0.151662 0.44052 0.981328
action: gauge 201.59049 bmass 10.123281 det 4.9947154 fermion0 595.18165 mom 246.41077 sum 1058.3009
action: gauge 191.90879 bmass 12.055474 det 4.5886725 fermion0 593.77706 mom 255.97774 sum 1058.3077
ACCEPT: delta S = 0.006827 start S = 1058.30090388 end S = 1058.30773104
IT_PER_TRAJ 1829
TR_XSQ 0.47810462
TR_X_COMM -0.18422601
action: gauge 201.59048 bmass 10.123281 det 4.9947153 fermion0 595.18165 mom 246.41077 sum 1058.3009
action: gauge 191.90878 bmass 12.055475 det 4.5886722 fermion0 593.77706 mom 255.97774 sum 1058.3077
ACCEPT: delta S = 0.00683 start S = 1058.30090097 end S = 1058.30773062
IT_PER_TRAJ 1828
MONITOR_FORCE_GAUGE 0.07042 0.0775
MONITOR_FORCE_FERMION0 0.06169 0.08129
FLINK 1.50272 2.28522 1.89397 0.453257
GMES -25.518142 -0.39888925 1829 2.7032961 11.994299 26.728455
GMES -25.518142 -0.39888947 1828 2.7032962 11.994299 26.728455
BACTION 11.994299
LINES 5.75197 -1.29966 -25.5181 -0.398889
LINES_POLAR 0.293259 -1.07331 -0.441773 -0.53025
DET 0.521974 0.0844206 0.519833 0.0976999 0.573584
DET 0.521974 0.0844206 0.519833 0.0976998 0.573584
WIDTHS 0.528975 0.497369 0.300954
UUBAR_EIG 0 -1.69023 0.398329 -2.70855 -1.05062
UUBAR_EIG 1 -0.681232 0.411906 -1.36192 0.0379132
UUBAR_EIG 2 2.37146 0.748483 1.03015 3.9175
POLAR_EIG 0 -1.01059 0.560748 -2.64284 -0.246423
POLAR_EIG 1 0.0750083 0.150025 -0.228864 0.31871
POLAR_EIG 2 0.706051 0.139865 0.404534 0.95355
action: gauge 191.90879 bmass 12.055474 det 4.5886725 fermion0 582.01175 mom 293.15332 sum 1083.718
action: gauge 187.9039 bmass 13.473937 det 3.5277491 fermion0 581.54581 mom 297.27648 sum 1083.7279
ACCEPT: delta S = 0.009871 start S = 1083.71800473 end S = 1083.72787572
TR_XSQ 0.62730848
TR_X_COMM -0.26506901
action: gauge 191.90878 bmass 12.055475 det 4.5886722 fermion0 582.01175 mom 293.15332 sum 1083.718
action: gauge 187.9039 bmass 13.473936 det 3.5277485 fermion0 581.54581 mom 297.27648 sum 1083.7279
ACCEPT: delta S = 0.009878 start S = 1083.71800155 end S = 1083.72787921
IT_PER_TRAJ 2004
MONITOR_FORCE_GAUGE 0.0756 0.08597
MONITOR_FORCE_FERMION0 0.06554 0.09459
FLINK 1.7297 2.21855 1.97412 0.417033
GMES -27.301922 4.7518904 2004 2.9254538 11.743994 28.61678
GMES -27.301922 4.7518895 2004 2.9254539 11.743994 28.61678
BACTION 11.743994
LINES 4.10673 3.79012 -27.3019 4.75189
LINES_POLAR -0.730967 -0.136371 -0.913519 0.400077
DET 0.519387 -0.0260721 0.356227 0.123516 0.440969
DET 0.519387 -0.0260721 0.356227 0.123515 0.440969
WIDTHS 0.437277 0.294048 0.350479
UUBAR_EIG 0 -1.79252 0.434058 -2.79801 -1.16132
UUBAR_EIG 1 -0.615788 0.551243 -1.51279 0.362262
UUBAR_EIG 2 2.40831 0.865369 1.21548 4.30729
POLAR_EIG 0 -0.979788 0.408587 -2.21842 -0.338012
POLAR_EIG 1 0.121493 0.186396 -0.349502 0.406786
POLAR_EIG 2 0.71977 0.136187 0.513584 0.986009
TR_XSQ 0.57101568
TR_X_COMM -0.14321202
RUNNING COMPLETED
STOP 2.9254538 11.743994
STOP 2.9254539 11.743994
Average CG iters for steps: 1882

Time = 0.2554 seconds
Time = 0.4222 seconds
total_iters = 5647

exit: Sun Nov 15 15:21:06 2020
exit: Tue Sep 6 21:20:29 2022

Loading

0 comments on commit 2fec7e3

Please sign in to comment.