summaryrefslogtreecommitdiff
path: root/soft_spheres.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'soft_spheres.cpp')
-rw-r--r--soft_spheres.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/soft_spheres.cpp b/soft_spheres.cpp
index 10e90c7..e438362 100644
--- a/soft_spheres.cpp
+++ b/soft_spheres.cpp
@@ -21,10 +21,10 @@ public:
int main(int argc, char* argv[]) {
const unsigned n = 24;
- unsigned N = 1200;
+ unsigned N = 1000;
double R = 0.025;
double ε = 0.005;
- unsigned steps = 1e2;
+ unsigned steps = 1e3;
double β = 0.5;
initializeAnimation(argc, argv);
@@ -45,15 +45,14 @@ int main(int argc, char* argv[]) {
draw(m);
}
- for (unsigned i = 0; i < steps; i++) {
+ for (unsigned i = 0; i < 10 * steps; i++) {
for (unsigned j = 0; j < N; j++) {
m.randomMove(β, ε, r);
}
- unsigned k = m.randomClusterSwap(β, r);
- std::cout << k << std::endl;
+ unsigned k = m.randomCluster(β, r);
- if (k > 0 && k < N) {
+ if (k > 2 && k < N - 2) {
draw(m);
getchar();
}