From 2083cff9581c3953ebdfa9a9ff951016c0ffc8b5 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 11 Oct 2022 11:49:46 +0200 Subject: More fixes. --- free_energy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'free_energy.cpp') 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(); } -- cgit v1.2.3-70-g09d2