Skip to content

Commit

Permalink
Put write_generic_gauge_info call under write_appl_gauge_info
Browse files Browse the repository at this point in the history
  • Loading branch information
detar committed Jul 29, 2008
1 parent 2ae9f2f commit 329bfa3
Show file tree
Hide file tree
Showing 30 changed files with 96 additions and 168 deletions.
7 changes: 3 additions & 4 deletions arb_dirac_eigen/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
char sums[20];
Real gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(startlat_p != NULL)
Expand Down
7 changes: 3 additions & 4 deletions arb_dirac_invert/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
char sums[20];
Real gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(startlat_p != NULL)
Expand Down
7 changes: 3 additions & 4 deletions clover_dynamical/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
char sums[20];
Real gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(startlat_p != NULL)
Expand Down
9 changes: 1 addition & 8 deletions clover_hybrids/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */

/* The rest are optional */

}
7 changes: 3 additions & 4 deletions clover_invert2/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
char sums[20];
Real gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(startlat_p != NULL)
Expand Down
7 changes: 3 additions & 4 deletions dense_static_su3/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */

Expand Down
2 changes: 1 addition & 1 deletion ext_src/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
}

Expand Down
7 changes: 3 additions & 4 deletions file_utilities/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
write_gauge_info_item(fp,"action.description","%s",
Expand Down
10 changes: 4 additions & 6 deletions gluon_prop/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,17 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
char sums[20];
float gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */

Real myssplaq = g_ssplaq; /* Precision conversion */
Real mystplaq = g_stplaq; /* Precision conversion */
Real nersc_linktr = linktrsum.real/3.; /* Convention and precision */

/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(startlat_p != NULL)
{
Expand Down
7 changes: 3 additions & 4 deletions h_dibaryon/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
char sums[20];
Real gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(startlat_p != NULL)
Expand Down
7 changes: 3 additions & 4 deletions heavy/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
Real gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(fixflag==COULOMB_GAUGE_FIX)
Expand Down
7 changes: 3 additions & 4 deletions hqet_heavy_to_light/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
Real gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(fixflag==COULOMB_GAUGE_FIX)
Expand Down
7 changes: 3 additions & 4 deletions hvy_qpot/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{

char sums[20];
Real ape_weight;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */

Expand Down
8 changes: 4 additions & 4 deletions ks_dynamical/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);


/* The rest are optional */

Expand Down
10 changes: 1 addition & 9 deletions ks_eigen/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,9 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */

/* The rest are optional */

printf("write_appl_gauge_info: HEY, I'M NOT SUPPOSED TO BE USED HERE!\n");

}

/* Print string formatting with digits based on intended precision */
Expand Down
7 changes: 3 additions & 4 deletions ks_hl_spectrum/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@
/* This routine writes the ASCII info file. It is called from one of
the lattice output routines in io_lat4.c.*/

void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
char sums[20];
double gauge_fix_tol = GAUGE_FIX_TOL;

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */
if(startlat_p != NULL)
Expand Down
40 changes: 6 additions & 34 deletions ks_imp_dyn/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,19 @@

extern char gauge_action_description[128]; /* in gauge_stuff.c */
extern int gauge_action_nloops,gauge_action_nreps;
void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{

/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */

Real myssplaq = g_ssplaq; /* Precision conversion */
Real mystplaq = g_stplaq; /* Precision conversion */
Real nersc_linktr = linktrsum.real/3.; /* Convention and precision */

/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */

write_gauge_info_item(fp,"action.description","%s",
"\"Gauge plus fermion (improved)\"",0,0);
"\"Gauge plus fermion\"",0,0);

write_gauge_info_item(fp,"gauge.description","%s",
gauge_action_description,0,0);
Expand Down Expand Up @@ -90,33 +88,12 @@ char *create_MILC_info(){
size_t bytes = 0;
char *info = (char *)malloc(INFOSTRING_MAX);
size_t max = INFOSTRING_MAX;
// char begin[] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><usqcdInfo><version>1.0</version>";
// char begin_info[] = "<info>";
// char end_info[] = "</info>";
// char end[] = "</usqcdInfo>";
// char valstring[32];
Real myssplaq = g_ssplaq; /* Precision conversion */
Real mystplaq = g_stplaq; /* Precision conversion */
Real nersc_linktr = linktrsum.real/3.; /* Convention and precision */


// snprintf(info+bytes, max-bytes,"%s",begin);
// bytes = strlen(info);

// /* Currently we generate only single precision files */
// print_prec(valstring, 32, (myssplaq+mystplaq)/6., 1);
// snprintf(info+bytes, max-bytes,"<plaq>%s</plaq>",valstring);
// bytes = strlen(info);

// print_prec(valstring, 32, nersc_linktr, 1);
// snprintf(info+bytes, max-bytes,"<linktr>%s</linktr>",valstring);
// bytes = strlen(info);

// snprintf(info+bytes, max-bytes,"%s",begin_info);
// bytes = strlen(info);

sprint_gauge_info_item(info+bytes, max-bytes,"action.description","%s",
"\"Gauge plus fermion (improved)\"",0,0);
"\"Gauge plus fermion\"",0,0);
bytes = strlen(info);
sprint_gauge_info_item(info+bytes, max-bytes,"gauge.description","%s",
gauge_action_description,0,0);
Expand Down Expand Up @@ -171,11 +148,6 @@ char *create_MILC_info(){
bytes = strlen(info);
#endif

// snprintf(info+bytes, max-bytes,"%s",end_info);
// bytes = strlen(info);

// snprintf(info+bytes, max-bytes,"%s",end);

return info;
}

Expand Down
10 changes: 4 additions & 6 deletions ks_imp_invert_multi/gauge_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,17 @@

extern char gauge_action_description[128]; /* in gauge_stuff.c */
extern int gauge_action_nloops,gauge_action_nreps;
void write_appl_gauge_info(FILE *fp)
void write_appl_gauge_info(FILE *fp, gauge_file *gf)
{
Real gauge_fix_tol = GAUGE_FIX_TOL;


/* Note that the file has already been opened and
the required magic number, time stamp, and lattice
dimensions have already been written */
/* Write generic information */
write_generic_gauge_info(fp, gf);

/* The rest are optional */

write_gauge_info_item(fp,"action.description","%s",
"\"Gauge plus fermion (improved)\"",0,0);
"\"Gauge plus fermion\"",0,0);

write_gauge_info_item(fp,"gauge.description","%s",
gauge_action_description,0,0);
Expand Down
Loading

0 comments on commit 329bfa3

Please sign in to comment.