summaryrefslogtreecommitdiff
path: root/lib/measure.h
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-19 18:22:15 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-19 18:22:15 -0400
commit72301b3d5c3a91ff2e7fc6eedcad7bce8e647efa (patch)
tree0927a2de8f92970b1499250e6cae4335a989b70f /lib/measure.h
parentd63eaab6d7c414d6a66e00e061919220d5b039e0 (diff)
downloadc++-72301b3d5c3a91ff2e7fc6eedcad7bce8e647efa.tar.gz
c++-72301b3d5c3a91ff2e7fc6eedcad7bce8e647efa.tar.bz2
c++-72301b3d5c3a91ff2e7fc6eedcad7bce8e647efa.zip
efficient computation of the smallest fourier mode by doing a magnetization-style update anytime a bond with the external field changes
Diffstat (limited to 'lib/measure.h')
-rw-r--r--lib/measure.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/measure.h b/lib/measure.h
index 3474684..d20c081 100644
--- a/lib/measure.h
+++ b/lib/measure.h
@@ -36,9 +36,9 @@ std::function <void(const state_t <R_t, X_t> *)> measurement_magnetization_file(
}
template <class R_t, class X_t>
-std::function <void(const state_t <R_t, X_t> *)> measurement_fourier_file(FILE *file, fftw_plan plan, double *fftw_in, double *fftw_out) {
+std::function <void(const state_t <R_t, X_t> *)> measurement_fourier_file(FILE *file) {
return [=](const state_t <R_t, X_t> *s) {
- float smaller_X = (float)correlation_length(s, plan, fftw_in, fftw_out);
+ float smaller_X = (float)correlation_length(s);
fwrite(&smaller_X, sizeof(float), 1, file);
};
}