aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-08-04 19:00:11 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:36 +0100
commitc57e2f9ba12f5cc2ebb790a008e3f886e8541a9d (patch)
tree985f2fe5aa34c37b7a6bbf006aa8e0f477e6ef19
parentee2f83aea5b744d9752ff382fddce50f87032950 (diff)
"Walking" less far seems to give better results
-rw-r--r--src/reax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reax.c b/src/reax.c
index 8faae010..81ead49e 100644
--- a/src/reax.c
+++ b/src/reax.c
@@ -142,7 +142,7 @@ static void walk_graph(double *x, double *y, double *z, int smin, int smax,
smax = new_s + 1;
mult++;
- } while ( smax < nel/2+1 );
+ } while ( mult<5 );
modv = 2.0*pmax / (double)s;
modv *= mult-1;