diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-09-06 23:36:19 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-09-06 23:36:19 -0400 |
commit | baca97666aebc1926861338af312c0560bf923f7 (patch) | |
tree | 375a6d4e46f9f27af3d64c8126947de6e1cc1ac9 | |
parent | 5d074a4f70dcfc099ddbb5483079b19dca18d103 (diff) | |
download | c++-baca97666aebc1926861338af312c0560bf923f7.tar.gz c++-baca97666aebc1926861338af312c0560bf923f7.tar.bz2 c++-baca97666aebc1926861338af312c0560bf923f7.zip |
tweaked the perturbation yet again
-rw-r--r-- | src/wolff_On.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/wolff_On.cpp b/src/wolff_On.cpp index 8a7b1a6..fada9bf 100644 --- a/src/wolff_On.cpp +++ b/src/wolff_On.cpp @@ -153,13 +153,10 @@ int main(int argc, char *argv[]) { Hish = sqrt(H2); } - if (Hish > 1.0) { - epsilon = sqrt(T / Hish); - } else { - epsilon = sqrt(T); - } + epsilon = sqrt(N_COMP * T / (D + Hish / 2)); + gen_R = std::bind(generate_rotation_perturbation <N_COMP>, std::placeholders::_1, std::placeholders::_2, epsilon, order); - pert_type = "PERTURB2"; + pert_type = "PERTURB3"; } else { gen_R = generate_rotation_uniform <N_COMP>; pert_type = "UNIFORM"; |