aboutsummaryrefslogtreecommitdiff
path: root/src/render_hkl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r--src/render_hkl.c6
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;