diff options
author | Thomas White <taw@physics.org> | 2010-09-29 12:00:45 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:00 +0100 |
commit | 5fa2f4965597235b0bc4a47048288a5b619178bc (patch) | |
tree | ab560daef091c90ca7058185fc2441db6cbef696 /src | |
parent | f0433274a137f3048c6a79bbd06b2f90d52bb550 (diff) |
get_hkl: Load the cell for resolution purposes, not just when rendering
Diffstat (limited to 'src')
-rw-r--r-- | src/get_hkl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c index 47c6a865..37af32bb 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -195,6 +195,7 @@ int main(int argc, char *argv[]) char *filename = NULL; ReflItemList *input_items; ReflItemList *write_items; + UnitCell *cell = NULL; /* Long options */ const struct option longopts[] = { @@ -258,6 +259,7 @@ int main(int argc, char *argv[]) } mol = load_molecule(filename); + cell = load_cell_from_pdb(filename); if ( !config_nophase ) { phases = new_list_phase(); } else { @@ -319,8 +321,7 @@ int main(int argc, char *argv[]) union_items(write_items, input_items); } - write_reflections(output, write_items, ideal_ref, phases, NULL, - mol->cell); + write_reflections(output, write_items, ideal_ref, phases, NULL, cell); delete_items(input_items); delete_items(write_items); |