From 051077e3bcb44822713ec341a25e853fbbc1c811 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 26 Mar 2019 15:13:45 +0100 Subject: cell_tool: Add --csl --- libcrystfel/src/cell-utils.c | 12 ++++++------ libcrystfel/src/cell-utils.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c index 2a3bcfa2..847ddb55 100644 --- a/libcrystfel/src/cell-utils.c +++ b/libcrystfel/src/cell-utils.c @@ -1875,7 +1875,7 @@ static int cmpcand(const void *av, const void *bv) static Rational *find_candidates(double len, double *a, double *b, double *c, - double ltl, int *pncand) + double ltl, int csl, int *pncand) { Rational *r; struct cand *cands; @@ -1890,7 +1890,7 @@ static Rational *find_candidates(double len, double *a, double *b, double *c, cands = malloc(max_cand * sizeof(struct cand)); if ( cands == NULL ) return NULL; - rat = rtnl_list(-5, 5, 1, 4, &nrat); + rat = rtnl_list(-5, 5, 1, csl ? 4 : 1, &nrat); if ( rat == NULL ) return NULL; for ( ia=0; ia