aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/facetron.c7
-rw-r--r--src/geometry.c7
-rw-r--r--src/geometry.h2
3 files changed, 9 insertions, 7 deletions
diff --git a/src/facetron.c b/src/facetron.c
index 6c04835a..40609967 100644
--- a/src/facetron.c
+++ b/src/facetron.c
@@ -85,13 +85,6 @@ static void refine_image(struct process_args *pargs)
}
-static double partiality(struct image *image,
- signed int h, signed int k, signed int l)
-{
- return 1.0;
-}
-
-
static void integrate_image(struct process_args *pargs)
{
struct reflhit *spots;
diff --git a/src/geometry.c b/src/geometry.c
index d91e89bc..e5cf223b 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -138,6 +138,13 @@ struct reflhit *find_intersections(struct image *image, UnitCell *cell,
}
+/* Return the partiality of this reflection in this image */
+double partiality(struct image *image, signed int h, signed int k, signed int l)
+{
+ return 1.0;
+}
+
+
double integrate_all(struct image *image, struct reflhit *hits, int n)
{
double itot = 0.0;
diff --git a/src/geometry.h b/src/geometry.h
index a1e73127..3e25a8a3 100644
--- a/src/geometry.h
+++ b/src/geometry.h
@@ -21,6 +21,8 @@ extern struct reflhit *find_intersections(struct image *image, UnitCell *cell,
double divergence, double bandwidth,
int *n, int output);
+extern double partiality(struct image *image, signed int h,
+ signed int k, signed int l);
extern double integrate_all(struct image *image, struct reflhit *hits, int n);