summaryrefslogtreecommitdiff
path: root/free_energy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'free_energy.cpp')
-rw-r--r--free_energy.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/free_energy.cpp b/free_energy.cpp
index 148423f..5cfaae1 100644
--- a/free_energy.cpp
+++ b/free_energy.cpp
@@ -1,5 +1,5 @@
-#include <iostream>
#include <iomanip>
+#include <iostream>
#include "aztec.hpp"
@@ -36,7 +36,7 @@ int main(int argc, char* argv[]) {
Rng r;
AztecDiamond a(n);
- a.setWeights(r);
+ a.setWeights(r);
for (Real T = T0; T <= T1; T += ΔT) {
Real avgFreeEnergy = 0;
@@ -46,7 +46,8 @@ int main(int argc, char* argv[]) {
avgFreeEnergy += a.computeProbabilities();
}
- std::cout << std::setprecision(20) << T << " " << - T * avgFreeEnergy / m / a.vertices.size() << std::endl;
+ std::cout << std::setprecision(20) << T << " " << -T * avgFreeEnergy / m / a.vertices.size()
+ << std::endl;
}
return 0;