Skip to content

Commit

Permalink
lib_wrapper/tmLQCD_read_gauge: compute and display the plaquette value
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrzewa committed Apr 30, 2016
1 parent 24deb6b commit 0ff7403
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wrapper/lib_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#include "invert_eo.h"
#include "start.h"
#include "operator.h"
#include "measure_gauge_action.h"
#include "linalg/convert_eo_to_lexic.h"
#include "include/tmLQCD.h"

Expand Down Expand Up @@ -206,7 +207,12 @@ int tmLQCD_read_gauge(const int nconfig) {
#ifdef MPI
xchange_gauge(g_gauge_field);
#endif
convert_32_gauge_field(g_gauge_field_32, g_gauge_field, VOLUMEPLUSRAND);
convert_32_gauge_field(g_gauge_field_32, g_gauge_field, VOLUMEPLUSRAND);

double plaquette = measure_plaquette( (const su3** const) g_gauge_field)/(6.*VOLUME*g_nproc);
if (g_cart_id == 0) {
printf("# The computed plaquette value is %.16e.\n", plaquette);
}
return(0);
}

Expand Down

0 comments on commit 0ff7403

Please sign in to comment.