summaryrefslogtreecommitdiff
path: root/free_energy.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-11 11:49:46 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-11 11:49:46 +0200
commit2083cff9581c3953ebdfa9a9ff951016c0ffc8b5 (patch)
treeb79d18e079cd79a97a36c832b7a1399d26dcb027 /free_energy.cpp
parente0ee3dad789078dc38f0d0da195cadc1c8ac0479 (diff)
downloadcode-2083cff9581c3953ebdfa9a9ff951016c0ffc8b5.tar.gz
code-2083cff9581c3953ebdfa9a9ff951016c0ffc8b5.tar.bz2
code-2083cff9581c3953ebdfa9a9ff951016c0ffc8b5.zip
More fixes.
Diffstat (limited to 'free_energy.cpp')
-rw-r--r--free_energy.cpp2
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();
}