diff options
author | Thomas White <taw@physics.org> | 2013-03-21 16:24:14 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-04-17 17:33:49 +0200 |
commit | 74970d1f8fc6476d6f5719beaa26cfbc843f8ada (patch) | |
tree | f6b0dd2387b0a898036dc448acefd214f45c9f5e /src | |
parent | 3baecd0039864ac1e95fbc0b397fd203d02f4188 (diff) |
Spot bad partiality models (and shut the compiler up)
Diffstat (limited to 'src')
-rw-r--r-- | src/hrs-scaling.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c index d91a36d9..5acb247f 100644 --- a/src/hrs-scaling.c +++ b/src/hrs-scaling.c @@ -141,7 +141,13 @@ static void run_scale_job(void *vwargs, int cookie) corr = get_partiality(refl) * get_lorentz(refl); break; + default : + ERROR("Unrecognised partiality model!\n"); + abort(); + break; + } + Ihl = get_intensity(refl) / corr; esd = get_esd_intensity(refl) / corr; @@ -282,6 +288,11 @@ static void run_merge_job(void *vwargs, int cookie) corr = get_partiality(refl) * get_lorentz(refl); break; + default : + ERROR("Unrecognised partiality model!\n"); + abort(); + break; + } Ihl = get_intensity(refl) / corr; @@ -416,8 +427,12 @@ static void run_esd_job(void *vwargs, int cookie) corr = get_partiality(refl) * get_lorentz(refl); break;; - } + default : + ERROR("Unrecognised partiality model!\n"); + abort(); + break; + } Ih = get_intensity(f); Ihl = get_intensity(refl) / (corr * G); |