aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-08 18:52:59 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:02 +0100
commit1235c59a99de33fd9e97538e2135bdd5c958ee9c (patch)
tree80751601f00ac6e1f477c653dd560d788e83a698
parente06afa53f7b7ad64c2c51ecb0eeafcd4099a1292 (diff)
Move partiality()
-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);