diff options
author | Thomas White <taw@physics.org> | 2015-01-20 16:10:04 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-01-20 16:10:04 +0100 |
commit | 38f81ac432e313ed451eceb80c3f36ba6f1008e8 (patch) | |
tree | d354c0adc18e53fc935310fe4681e80d949a3ff1 /src/pattern_sim.c | |
parent | 15931c364e2ee96bcd545b33ef5bc0db9e52341f (diff) |
Add informational messages when symmetry doesn't match for monoclinic point groups
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index aa3192d8..4ee77c19 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -3,11 +3,11 @@ * * Simulate diffraction patterns from small crystals * - * Copyright © 2012-2014 Deutsches Elektronen-Synchrotron DESY, + * Copyright © 2012-2015 Deutsches Elektronen-Synchrotron DESY, * a research centre of the Helmholtz Association. * * Authors: - * 2009-2014 Thomas White <taw@physics.org> + * 2009-2015 Thomas White <taw@physics.org> * 2013-2014 Chun Hong Yoon <chun.hong.yoon@desy.de> * 2014 Valerio Mariani * 2013 Alexandra Tolstikova @@ -573,6 +573,12 @@ int main(int argc, char *argv[]) } free(spectrum_str); + /* Load unit cell */ + input_cell = load_cell_from_file(filename); + if ( input_cell == NULL ) { + exit(1); + } + if ( intfile == NULL ) { /* Gentle reminder */ @@ -606,6 +612,13 @@ int main(int argc, char *argv[]) if ( check_list_symmetry(reflections, sym) ) { ERROR("The input reflection list does not appear to" " have symmetry %s\n", symmetry_name(sym)); + if ( cell_get_lattice_type(input_cell) == L_MONOCLINIC ) + { + ERROR("You may need to specify the unique axis " + "in your point group. The default is " + "unique axis c.\n"); + ERROR("See 'man crystfel' for more details.\n"); + } return 1; } @@ -622,12 +635,6 @@ int main(int argc, char *argv[]) image.bw = bandwidth; image.nsamples = nsamples; - /* Load unit cell */ - input_cell = load_cell_from_file(filename); - if ( input_cell == NULL ) { - exit(1); - } - /* Initialise stuff */ image.filename = NULL; image.features = NULL; |