diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2022-10-11 11:49:46 +0200 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2022-10-11 11:49:46 +0200 |
commit | 2083cff9581c3953ebdfa9a9ff951016c0ffc8b5 (patch) | |
tree | b79d18e079cd79a97a36c832b7a1399d26dcb027 /free_energy.cpp | |
parent | e0ee3dad789078dc38f0d0da195cadc1c8ac0479 (diff) | |
download | code-2083cff9581c3953ebdfa9a9ff951016c0ffc8b5.tar.gz code-2083cff9581c3953ebdfa9a9ff951016c0ffc8b5.tar.bz2 code-2083cff9581c3953ebdfa9a9ff951016c0ffc8b5.zip |
More fixes.
Diffstat (limited to 'free_energy.cpp')
-rw-r--r-- | free_energy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/free_energy.cpp b/free_energy.cpp index 6bfdf19..2bc2a0e 100644 --- a/free_energy.cpp +++ b/free_energy.cpp @@ -36,12 +36,12 @@ int main(int argc, char* argv[]) { Rng r; AztecDiamond a(n); + a.setWeights(r); for (Real T = T0; T <= T1; T += ΔT) { Real avgFreeEnergy = 0; for (unsigned i = 0; i < m; i++) { - a.setWeights(r); a.computeWeights(T); avgFreeEnergy += a.computeProbabilities(); } |