-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:daschaich/susy
- Loading branch information
Showing
27 changed files
with
875 additions
and
793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
// ----------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.