aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/reax.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reax.c b/src/reax.c
index f2a7d8e6..eafb1225 100644
--- a/src/reax.c
+++ b/src/reax.c
@@ -339,6 +339,9 @@ void reax_index(IndexingPrivate *pp, struct image *image, UnitCell *cell)
}
+ /* Sanity check */
+ if ( pmax < 1e4 ) return;
+
/* Search for a */
smin = 2.0*pmax * amin;
smax = 2.0*pmax * amax;