aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-03-01 15:34:31 +0100
committerThomas White <taw@physics.org>2019-03-01 16:09:56 +0100
commitcb2eb72d8b05a31a28eebf77a988a6fe2cf8e17e (patch)
tree333e8eaea283866aa5a0a72efc83b2b648172857 /src
parent9de0d3251149e03a397131fbe9e8b0268424e244 (diff)
partialator: Check for failed minimiser setup in write_grid()
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 2566bf2d..47bf16e7 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -656,6 +656,7 @@ static void write_grid(Crystal *cr, const RefList *full,
int i;
min = setup_minimiser(cr, full, 0, serial, scaleflags, &priv);
+ if ( min == NULL ) return;
idx1 = 99;
idx2 = 99;