aboutsummaryrefslogtreecommitdiff
path: root/src/relrod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/relrod.c')
-rw-r--r--src/relrod.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/relrod.c b/src/relrod.c
index 7ee4dfe3..058075e9 100644
--- a/src/relrod.c
+++ b/src/relrod.c
@@ -86,8 +86,7 @@ void get_reflections(struct image *image, UnitCell *cell, double smax)
res_max = sqrt(w2 + h2) / image->resolution;
res_max *= (wavenumber / image->camera_len);
} else {
- fprintf(stderr,
- "Unrecognised formulation mode in get_reflections"
+ ERROR("Unrecognised formulation mode in get_reflections"
" (resolution cutoff calculation)\n");
return;
}
@@ -172,9 +171,8 @@ void get_reflections(struct image *image, UnitCell *cell, double smax)
x /= image->pixel_size;
y /= image->pixel_size;
} else {
- fprintf(stderr,
- "Unrecognised formulation mode "
- "in get_reflections\n");
+ ERROR("Unrecognised formulation mode "
+ "in get_reflections\n");
return;
}