diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-30 06:32:51 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-30 06:32:51 -0400 |
commit | fc242f52e835be85cc6030b6cae5619d18df7670 (patch) | |
tree | eff9095238fbc9de89702b69863fca1f7bdcc29d /src | |
parent | 3223b527890e3090184384374f45a964cffa254a (diff) | |
download | c++-fc242f52e835be85cc6030b6cae5619d18df7670.tar.gz c++-fc242f52e835be85cc6030b6cae5619d18df7670.tar.bz2 c++-fc242f52e835be85cc6030b6cae5619d18df7670.zip |
various changes
Diffstat (limited to 'src')
-rw-r--r-- | src/wolff_On.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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; |