aboutsummaryrefslogtreecommitdiff
path: root/src/reax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reax.c')
-rw-r--r--src/reax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reax.c b/src/reax.c
index 81ead49e..8faae010 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 ( mult<5 );
+ } while ( smax < nel/2+1 );
modv = 2.0*pmax / (double)s;
modv *= mult-1;