diff options
author | Thomas White <taw@physics.org> | 2010-07-01 15:41:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:52 +0100 |
commit | bc5a0359e04a4a4f2070ef183aededc20dc6b9da (patch) | |
tree | 1391ed177bb7249e0e277430e63cc6fc31f08b13 | |
parent | 1e897dcee7418b337bcf3f63b34cdf51a721a29a (diff) |
Trap on invalid weighting
-rw-r--r-- | src/render_hkl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c index 46ba4c89..d7a9069e 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -135,6 +135,9 @@ static void render_za(UnitCell *cell, double *ref, unsigned int *c, case WGHT_RAWCOUNTS : val = (float)ct; break; + default : + ERROR("Invalid weighting.\n"); + abort(); } nequiv = num_equivs(h, k, 0, sym); @@ -204,6 +207,9 @@ static void render_za(UnitCell *cell, double *ref, unsigned int *c, case WGHT_RAWCOUNTS : val = (float)ct; break; + default : + ERROR("Invalid weighting.\n"); + abort(); } val = boost*val/max_val; |