From c103e26cbe6ec01c87f9497a5279cf4d4d5103b5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 12 Aug 2011 11:35:44 +0200 Subject: Add sanity check --- src/reax.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3