diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2021-07-02 17:10:44 +0200 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2021-07-02 17:10:44 +0200 |
commit | 30d0fee3be1b899e93c5af7cf9de585071bacd44 (patch) | |
tree | c7dbb06c658b62e6ea0cf733f74b23d4588edbe7 /distinguishable.cpp | |
parent | e3088a1fed1de270767ed011a1ea20c383b7f881 (diff) | |
download | lattice_glass-30d0fee3be1b899e93c5af7cf9de585071bacd44.tar.gz lattice_glass-30d0fee3be1b899e93c5af7cf9de585071bacd44.tar.bz2 lattice_glass-30d0fee3be1b899e93c5af7cf9de585071bacd44.zip |
Work on the Ciamarra model.
Diffstat (limited to 'distinguishable.cpp')
-rw-r--r-- | distinguishable.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/distinguishable.cpp b/distinguishable.cpp index 22f228a..b739927 100644 --- a/distinguishable.cpp +++ b/distinguishable.cpp @@ -83,13 +83,23 @@ int main() { */ /* */ - s.setInitialPosition(); std::cout << T << " "; - for (unsigned i = 0; i < 1e4; i++) { + s.setInitialPosition(); + auto start = std::chrono::high_resolution_clock::now(); + for (unsigned i = 0; i < 1e5; i++) { + for (unsigned j = 0; j < s.vertices.size(); j++) { + s.tryRandomSwap(T, r); + } + /* Matrix<D> m = r.pick(ms); Vertex<D, DistinguishableState>& v = r.pick(s.vertices); s.wolff(Transformation<D>(L, m, v.position - m * v.position), T, r); - std::cout << s.selfIntermediateScattering() << " "; + */ + if (i % 10 == 0) { + auto stop = std::chrono::high_resolution_clock::now(); + auto duration = duration_cast<std::chrono::microseconds>(stop - start); + std::cout << duration.count() << " " << s.selfIntermediateScattering(ms) << " "; + } } /* for (unsigned i = 0; i < 1e5; i++) { |