void SU3Test(int argc, char **argv) { for (int i =1;i < argc; i++){ if(process_command_line_option(argc, argv, &i) == 0){ continue; } fprintf(stderr, "ERROR: Invalid option:%s\n", argv[i]); usage(argv); } init(); if (strcmp(latfile,"")) { // load in the command line supplied gauge field read_gauge_field(latfile, gauge, param.cpu_prec, param.X, argc, argv); construct_gauge_field((void**)gauge, 2, param.cpu_prec, ¶m); } else { // generate a random SU(3) field printf("Randomizing fields..."); construct_gauge_field((void**)gauge, 1, param.cpu_prec, ¶m); printf("done.\n"); } loadGaugeQuda(gauge, ¶m); saveGaugeQuda(new_gauge, ¶m); check_gauge(gauge, new_gauge, 1e-3, param.cpu_prec); end(); }
void SU3Test() { init(); printf("Randomizing fields..."); construct_gauge_field((void**)gauge, 1, param.cpu_prec, ¶m); printf("done.\n"); loadGaugeQuda(gauge, ¶m); saveGaugeQuda(new_gauge, ¶m); check_gauge(gauge, new_gauge, 1e-3, param.cpu_prec); end(); }
void SU3Test(int argc, char **argv) { init(); char *latfile = "";//"16_64.lat"; if (strcmp(latfile,"")) { // load in the command line supplied gauge field read_gauge_field(latfile, gauge, param.cpu_prec, param.X, argc, argv); construct_gauge_field((void**)gauge, 2, param.cpu_prec, ¶m); } else { // generate a random SU(3) field printf("Randomizing fields..."); construct_gauge_field((void**)gauge, 1, param.cpu_prec, ¶m); printf("done.\n"); } loadGaugeQuda(gauge, ¶m); saveGaugeQuda(new_gauge, ¶m); check_gauge(gauge, new_gauge, 1e-3, param.cpu_prec); end(); }