diff options
author | Thomas White <taw@physics.org> | 2023-07-27 13:59:44 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-07-28 13:22:05 +0200 |
commit | 88ceb8bf832fd96d980ed1c3223e26641856b413 (patch) | |
tree | 07fd90b571cae3c10b5529301a95bae903670d93 /libcrystfel/src | |
parent | e22eff7745c245c580f6824270b4a3f29a1039c9 (diff) |
Don't attempt to write Mille data without geometry groups
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/crystfel-mille.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/crystfel-mille.c b/libcrystfel/src/crystfel-mille.c index 3acb412a..f08c8797 100644 --- a/libcrystfel/src/crystfel-mille.c +++ b/libcrystfel/src/crystfel-mille.c @@ -64,6 +64,9 @@ void write_mille(Mille *mille, int n, UnitCell *cell, { int i; + /* No groups -> no refinement */ + if ( image->detgeom->top_group == NULL ) return; + /* Local parameters */ const enum gparam rvl[] = { |