From fc242f52e835be85cc6030b6cae5619d18df7670 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 30 Jul 2018 06:32:51 -0400 Subject: various changes --- src/wolff_On.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/wolff_On.cpp b/src/wolff_On.cpp index 3fa5840..6cd8777 100644 --- a/src/wolff_On.cpp +++ b/src/wolff_On.cpp @@ -42,7 +42,11 @@ int main(int argc, char *argv[]) { count_t N = (count_t)1e7; +#ifdef DIMENSION + D_t D = DIMENSION; +#else D_t D = 2; +#endif L_t L = 128; double T = 2.26918531421; double *H_vec = (double *)calloc(MAX_Q, sizeof(double)); @@ -69,9 +73,15 @@ int main(int argc, char *argv[]) { case 'N': // number of steps N = (count_t)atof(optarg); break; +#ifdef DIMENSION + case 'D': // dimension + printf("Dimension was specified at compile time, you can't change it now!\n"); + exit(EXIT_FAILURE); +#else case 'D': // dimension D = atoi(optarg); break; +#endif case 'L': // linear size L = atoi(optarg); break; -- cgit v1.2.3-70-g09d2